[GRASS-user] Problem with python script in osgeo4w grass 6.4.4 32bit

Roy royroge at outlook.com
Sun Nov 2 04:18:04 PST 2014


Dear Helmut,

now the script works thank you for your help!!

at the first try it didn't work because i added the .bat line with 
"braces {}"
misunderstanding your previous advice.

Thanks again, Roy.

Il 02/11/2014 11:59, Helmut Kudrnovsky ha scritto:
>> I tried your advice, copied the script in
>>
>> C:\OSGeo4W\apps\grass\grass-6.4.4\scripts
>>
>> and made the bat file in
>>
>> C:\OSGeo4W\apps\grass\grass-6.4.x\bin
>>
>> but tring tu run it i get this error:
> tested here on my side:
>
> (1) copied the content of e.g.
> http://trac.osgeo.org/grass/browser/grass-addons/grass6/raster/r.basin/r.basin.py
>
> in r.my.testscript.py and saved the python script in
> C:\OSGeo4W\apps\grass\grass-6.4.x\scripts
>
> (2) in C:\OSGeo4W\apps\grass\grass-6.4.x\bin I've added r.my.testscript.bat
> with following content
>
> @"%GRASS_PYTHON%" "%GISBASE%/scripts/r.my.testscript.py" %*
>
> => it works without any problem
>
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20141102/08e4807d/attachment.html>


More information about the grass-user mailing list