#580: WinGRASS: $GISBASE/etc/gui/scripts/ require something like $(EXE) to run ---------------------------+------------------------------------------------ Reporter: hamish | Owner: [email protected] 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 cmbarton):
Replying to [comment:21 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. > [[BR]] [[BR]] On Mac we only need to supply the wxPython binaries to ensure that the correct version is run I think. But maybe william will know better.[[BR]] [[BR]] > [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:22> GRASS GIS <http://grass.osgeo.org>
_______________________________________________ grass-dev mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/grass-dev
