[GRASS-windows] Re: r.basin for windows [was Re: WinGrass6.5.svn-installer with selected addons]

Helmut Kudrnovsky hellik at web.de
Sat Oct 22 16:26:18 EDT 2011


>> @"%GRASS_PYTHON%" "%GISBASE%\scripts\r.basin.py" %*
>> or
>> @"%GRASS_PYTHON%" "%GISBASE%/scripts/r.basin.py" %*
>
>Either should work, but the former is preferable. Both cmd.exe and
>%GRASS_PYTHON% will be native Windows programs, so they'll prefer
>backslashes to forward slashes in the event that it makes a
>difference. 

ok

>> (2) in a windows command line outside any grass-session:
>
>Neither of these cases matter. What matters is e.g.:
>
>        cmd /c testpython 

let's test this in a wingrass-msys-shell within a grass-session:

GRASS 6.5> cmd /c testpython
C:\Program Files\GRASS 6.5.SVN\Python25

['C:\\Users\\syringia', 'c:\\Program Files\\GRASS 6.5.SVN\\etc\\python',
'c:\\Program Files\\GRASS 6.5.SVN\\Python25',
'C:\\windows\\system32\\python26.zip', 'C:\\Program Files\\GRASS
6.5.SVN\\Python25\\DLLs', 'C:\\Program Files\\GRASS 6.5.SVN\\Python25\\lib',
'C:\\Program Files\\GRASS 6.5.SVN\\Python25\\lib\\plat-win', 'C:\\Program
Files\\GRASS 6.5.SVN\\Python25\\lib\\lib-tk', 'C:\\Python26\\ArcGIS10.0',
'C:\\Program Files\\GRASS 6.5.SVN\\Python25\\lib\\site-packages',
'C:\\Program Files\\GRASS 6.5.SVN\\Python25\\lib\\site-packages\\win32',
'C:\\Program Files\\GRASS
6.5.SVN\\Python25\\lib\\site-packages\\win32\\lib', 'C:\\Program
Files\\GRASS 6.5.SVN\\Python25\\lib\\site-packages\\Pythonwin', 'C:\\Program
Files\\GRASS 6.5.SVN\\Python25\\lib\\site-packages\\wx-2.8-msw-unicode']

2.6.5 (r265:79096, Mar 19 2010, 21:48:26) [MSC v.1500 32 bit (Intel)] 
GRASS 6.5> 

ok, there seems to be a mixing...

2.6.5 (r265:79096, Mar 19 2010, 21:48:26) [MSC v.1500 32 bit (Intel)] is
from
C:\Python26\ArcGIS10.0 and not the wingrass-bundled python in
C:\Program Files\GRASS 6.5.SVN\Python25

maybe we should add this little testscript to the wiki?

>Using a .bat file to force the use of %GRASS_PYTHON% is fine if you
>can be sure that the .bat file will always be used. 

ok, but for this my insight in wxgui and/or wingrass-(msys)command-line
invoking bat-scripts isn't enough to be sure.

any hints to look where in the source?

thanks
Helmut



--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/WinGrass6-5-svn-installer-with-selected-addons-tp6873977p6920884.html
Sent from the Grass - Win mailing list archive at Nabble.com.


More information about the grass-windows mailing list