#1310: Browse button in WxPython GUIs (for scripts) does not provide a correct
file path for WinGRAS
------------------------------+---------------------------------------------
 Reporter:  katrineggert1980  |       Owner:  grass-dev@…              
     Type:  defect            |      Status:  new                      
 Priority:  critical          |   Milestone:  6.4.1                    
Component:  wxGUI             |     Version:  6.4.1 RCs                
 Keywords:  winGRASS          |    Platform:  MSWindows XP             
      Cpu:  Unspecified       |  
------------------------------+---------------------------------------------

Comment(by martinl):

 Replying to [comment:16 katrineggert1980]:

 > I added, in the beggining of the code a print of $GIS_OPT_OUTPUT and
 it's printed as:
 > C:deletetriedoutput02
 >
 > So it's still not working

 source of the problem are bat scripts, in this case
 `$ARCH_DISTDIR\bin\r.out.xyz.bat`

 {{{
 @"%GRASS_SH%" -c '"%GISBASE%/scripts/r.out.xyz" %*'
 }}}

 where '\` are escaped. To make Bash script working on Windows is generally
 speaking pain. The future are Python scripts in GRASS 7. I still think
 that Pythonized script could replace most of Bash scripts in GRASS 6.

 Benefits:
  * maintaining scripts only in one language
  * Python scripts can run on Windows without any problems

 Drawback:
  * some new bugs can be introduced, anyway some Bash-related can be fixed
 by this conversion
  * Python as requirement

 I proposed that some time ago, but it was refused.

-- 
Ticket URL: <http://trac.osgeo.org/grass/ticket/1310#comment:17>
GRASS GIS <http://grass.osgeo.org>

_______________________________________________
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

Reply via email to