[GRASS-dev] Re: [GRASS GIS] #1101: WinGrass7 + scripts are not
found in the command line
GRASS GIS
trac at osgeo.org
Tue Sep 20 23:55:13 EDT 2011
#1101: WinGrass7 + scripts are not found in the command line
-------------------------------+--------------------------------------------
Reporter: hellik | Owner: grass-dev@…
Type: defect | Status: new
Priority: normal | Milestone: 7.0.0
Component: Packaging | Version: svn-trunk
Keywords: wingrass, scripts | Platform: MSWindows Vista
Cpu: Unspecified |
-------------------------------+--------------------------------------------
Comment(by glynn):
Replying to [comment:10 hellik]:
> any hints to look why there seems to be tried invoking shell scripts
instead of the pythonized scripts in grass70svn?
1. Does %PATH% contain the "scripts" directory?
2. Does PATHEXT include ".PY"?
!#2 isn't required for bash, which will recognise the "#!/usr/bin/env
python" lines provided that there's a Python interpreter in $PATH (which
shouldn't be the case, but probably is with the OSGeo4W setup). But
cmd.exe (and Python itself) will use the file associations for the .PY
extension (which Python will set up if it's installed correctly).
BTW, I believe that the "sh.exe" is because you're typing the commands
into the shell, not because something is trying to execute the command as
a shell script.
--
Ticket URL: <https://trac.osgeo.org/grass/ticket/1101#comment:11>
GRASS GIS <http://grass.osgeo.org>
More information about the grass-dev
mailing list