[GRASS-dev] [GRASS GIS] #1692: calling a script within a script failing on Windows XP

GRASS GIS trac at osgeo.org
Mon Oct 22 13:07:32 PDT 2012


#1692: calling a script within a script failing on Windows XP
-----------------------------------------------------+----------------------
 Reporter:  hamish                                   |       Owner:  martinl     
     Type:  defect                                   |      Status:  assigned    
 Priority:  blocker                                  |   Milestone:  6.4.3       
Component:  Shell Scripts                            |     Version:  6.4.2       
 Keywords:  v.random.cover, wingrass, shell scripts  |    Platform:  MSWindows XP
      Cpu:  x86-32                                   |  
-----------------------------------------------------+----------------------

Comment(by hellik):

 Replying to [comment:18 martinl]:
 > Replying to [comment:17 martinl]:
 >
 > > backported to `relbr64` in r53519
 >
 > with the last winGRASS build, it seems to work. Testing welcomed...

 this ticket was about shell-scripts; maybe following it's worth for an
 extra ticket?:

 there are some very nice python-based-script-addons for grass6.x, like the
 inter-dependent r.basin-, r.ipso-, r.wf-scripts (and others).

 the pyhton addon-sscripts (r.basin.py, etc.) are stored in
 C:\Users\XXXX\AppData\Roaming\GRASS6\addons, whereas the related bat-files
 (r.basin.py.bat) are in C:\Users\XXXX\AppData\Roaming\GRASS6\addons\bin.

 the content of the bat-files are e.g.

 {{{
 @"%GRASS_SH%" "%GISBASE%/scripts/r.basin.py" %*
 }}}

 in windows ''#!/usr/bin/env python'' isn't recognized, so ''"%GRASS_SH%"''
 should be changed to ''"%GRASS_PYTHON%"''

 but changing this manually, r.basin calling r.ipso/r.wf isn't really
 working.

 AFAIK python addons-scripts aren't at the moment ''officially'' supported
 in grass6.x (working out of the box in linux, but not in windows),
 although it would be nice if such peculiar scripts would also be available
 in windows.

 Helmut

-- 
Ticket URL: <http://trac.osgeo.org/grass/ticket/1692#comment:22>
GRASS GIS <http://grass.osgeo.org>



More information about the grass-dev mailing list