#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:11 glynn]: > Replying to [comment:10 cmbarton]: > > So far nothing works. We did up the Python script the way it is suggested in the WIKI and it works fine on Linux and Mac. It either does nothing or hangs before launching on Windows. The farthest we've gotten is to get the error that the script does not generate an XML interface- description. My interpretation is that python parser work on Linux and Mac but not on Windows from the command line. > > On Windows, 6.4's g.parser explicitly invokes the script via $GRASS_SH. Obviously this won't work for Python scripts. Does this mean that it is only expecting shell scripts in Windows? What happens on other platforms (since Python does run without problems in Linux and on Mac)? > > FWIW, Python scripts work in Windows in 7.0, whether the script is in the path or not (once PYTHONPATH has been set; Init.bat doesn't set this). > > The biggest difference between the two is that in 7.0, the grass.script.parser() Python function uses "g.parser -s", which eliminates the need to re-execute the script. It may be worth back-porting this feature to 6.x (the existing behaviour is still available for use by shell scripts). Seems like that would be a very good idea, if it means that you can run something besides shell scripts in a Windows environment. Michael -- Ticket URL: <https://trac.osgeo.org/grass/ticket/580#comment:12> GRASS GIS <http://grass.osgeo.org>
_______________________________________________ grass-dev mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/grass-dev
