[GRASS-dev] Error when running a scrip in Windows-WinGRASS

Helmut Kudrnovsky hellik at web.de
Mon Oct 11 12:24:01 EDT 2010


Hi Helena,

>YOu mean (e.g. my Script is called i.test.py
>I should have a i.test.bat in bin folder and with the following?
>@"%GRASS_SH%" -c '"%GISBASE%/scripts/i.test.py" %*'
>??
>How can I know if ther python is in the path?
>
>THanks
>helena

maybe following code in the source could help you,
how it's solved there to start the wx-gui which is python:

http://trac.osgeo.org/grass/browser/grass/branches/releasebranch_6_4/mswindows/GRASS-Installer.nsi#L628

or maybe also there:

http://trac.osgeo.org/grass/browser/grass/branches/releasebranch_6_4/lib/init/init.bat
http://trac.osgeo.org/grass/browser/grass/branches/releasebranch_6_4/lib/init/init.bat#L131
http://trac.osgeo.org/grass/browser/grass/branches/releasebranch_6_4/gui/scripts

HTH
Helmut
___________________________________________________________
Neu: WEB.DE De-Mail - Einfach wie E-Mail, sicher wie ein Brief!  
Jetzt De-Mail-Adresse reservieren: https://produkte.web.de/go/demail02
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 1747 bytes
Desc: S/MIME Cryptographic Signature
Url : http://lists.osgeo.org/pipermail/grass-dev/attachments/20101011/bbb62565/smime.bin


More information about the grass-dev mailing list