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



_______________________________________________
grass-user mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/grass-user

Reply via email to