[GRASS-dev] [GRASS GIS] #1280: problem about the output of g.parser

GRASS GIS trac at osgeo.org
Wed Feb 16 11:38:07 EST 2011


#1280: problem about the output of g.parser
---------------------------------------+------------------------------------
 Reporter:  met                        |       Owner:  grass-dev@…              
     Type:  defect                     |      Status:  new                      
 Priority:  minor                      |   Milestone:  6.4.1                    
Component:  Default                    |     Version:  6.4.1 RCs                
 Keywords:  g.parser output character  |    Platform:  MSWindows XP             
      Cpu:  OSX/Intel                  |  
---------------------------------------+------------------------------------
 Into the output of command g.parser are eliminated all character slash \
 while are keeping unotuched characters like /         .


 == GRASS 6.4.1RC1 (sanmarino)> test.parser
 inp_file=D:\Modelli\nepaPy\Net3.inp
   '@ARGS_PARSED@\nopt_inp_file=D:ModellinepaPyNet3.inp\n'
   'opt_inp_file=D:ModellinepaPyNet3.inp'
   {'inp_file': 'D:ModellinepaPyNet3.inp'} ==


 == GRASS 6.4.1RC1 (sanmarino)> test.parser
 inp_file=D:/Modelli/nepaPy/Net3.inp
   '@ARGS_PARSED@\nopt_inp_file=D:/Modelli/nepaPy/Net3.inp\n'
   'opt_inp_file=D:/Modelli/nepaPy/Net3.inp'
   {'inp_file': 'D:/Modelli/nepaPy/Net3.inp'} ==

 The problem come from by the Wxguy (under windows) that give back the
 pathname using the wrong slash \.

 Using commandline this problem can be solved putting the path name between
 apexes "  .


 ==   GRASS 6.4.1RC1 (sanmarino)> test.parser
 inp_file="D:\Modelli\epaPy\Net3.inp"
   'opt_inp_file=D:\\Modelli\\epaPy\\Net3.inp'
   {'inp_file': 'D:\\Modelli\\epaPy\\Net3.inp'} ==

 Using the Guy insetad, that trick doesn't work.


 == (Wed Feb 16 16:36:04 2011)
 test.parser inp_file="C:\Programmi\GRASS-64\msys\m.ico"
   '@ARGS_PARSED@\nopt_inp_file="C:ProgrammiGRASS-64msysm.ico"\n'
   'opt_inp_file="C:ProgrammiGRASS-64msysm.ico"'
   ({'inp_file': '"C:ProgrammiGRASS-64msysm.ico"'}, {})
   (Wed Feb 16 16:36:05 2011) Command finished (0 sec)
 ==


 Again with the graphic guy, we can avoid this problem if the pathname has
 blank ( even adding one blank at the end of file name)


 ==  (Wed Feb 16 16:31:52 2011)
   test.parser inp_file=C:\Programmi\GRASS-64\msys\m.ico
   '@ARGS_PARSED@\nopt_inp_file=C:\\Programmi\\GRASS-64\\msys\\m.ico \n'
   'opt_inp_file=C:\\Programmi\\GRASS-64\\msys\\m.ico '
   ({'inp_file': 'C:\\Programmi\\GRASS-64\\msys\\m.ico '}, {})
   (Wed Feb 16 16:31:52 2011) Command finished (0 sec)            ==

-- 
Ticket URL: <http://trac.osgeo.org/grass/ticket/1280>
GRASS GIS <http://grass.osgeo.org>



More information about the grass-dev mailing list