[GRASS-dev] Re: [GRASS GIS] #580: WinGRASS: $GISBASE/etc/gui/scripts/ require something like $(EXE) to run

GRASS GIS trac at osgeo.org
Sat Dec 26 08:37:52 EST 2009


#580: WinGRASS: $GISBASE/etc/gui/scripts/ require something like $(EXE) to run
---------------------------+------------------------------------------------
  Reporter:  hamish        |       Owner:  grass-dev at lists.osgeo.org
      Type:  defect        |      Status:  new                      
  Priority:  blocker       |   Milestone:  6.4.0                    
 Component:  wxGUI         |     Version:  6.4.0 RCs                
Resolution:                |    Keywords:  wingrass                 
  Platform:  MSWindows XP  |         Cpu:  Unspecified              
---------------------------+------------------------------------------------
Comment (by hamish):

 Replying to [comment:18 hamish]:
 > > All the wrapper scripts in [$ETC/gui/scripts/] fail on wingrass.

 Replying to [comment:21 glynn]:
 > My first guess would be that something isn't setting shell=True
 > in the Popen constructor.
 >
 > On Windows, shell=False (the default) only works for .exe files.
 > If you want to be able to "run" .py, .bat etc files, you have to
 > set shell=True.
 >
 > [shell=True uses `cmd /c ...`, while shell=False calls !CreateProcess()
 directly.]
 >
 > lib/python/core.py has its own versions of Popen() and call()
 > which default to shell=True on Windows (Unix should always use
 > shell=False). The wx GUI should be doing something similar.

 it seems to, in gui/wxpython/gui_modules/gcmd.py line ~ 434-441.
 and the regular shell script modules from $ETC/scripts/ all work fine
 AFAIK.


 Hamish

-- 
Ticket URL: <https://trac.osgeo.org/grass/ticket/580#comment:28>
GRASS GIS <http://grass.osgeo.org>


More information about the grass-dev mailing list