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

GRASS GIS trac at osgeo.org
Mon Dec 21 18:31:58 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 glynn):

 Replying to [comment:18 hamish]:

 > All the wrapper scripts in there fail on wingrass.

 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.

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


More information about the grass-dev mailing list