[GRASS-dev] Re: [GRASS GIS] #580: WinGRASS:
$GISBASE/etc/gui/scripts/ require something like $(EXE) to run
GRASS GIS
trac at osgeo.org
Thu Oct 1 23:49:12 EDT 2009
#580: WinGRASS: $GISBASE/etc/gui/scripts/ require something like $(EXE) to run
---------------------------+------------------------------------------------
Reporter: hamish | Owner: grass-dev at lists.osgeo.org
Type: defect | Status: new
Priority: blocker | Milestone: 6.4.0
Component: wxGUI | Version: 6.4.0 RCs
Resolution: | Keywords: wingrass
Platform: MSWindows XP | Cpu: Unspecified
---------------------------+------------------------------------------------
Comment (by hamish):
(working with Colin's native WinGrass installer r39271)
%PATHEXT% is used to indicate that .py files are executable and usable
without their extension. But this only seems to work from the DOS box
version of WinGrass, not from the MSys xterm (no big surprise there).
Running a python script from the DOS prompt it fails though because it
doesn't know what program to associate .PY with.
what is apparently missing is:
{{{
set .py="%GISBASE%/extrabin\python.exe"
}}}
but setting that in the DOS box doesn't associate it properly.
(aside: strangely `dir "%GISBASE%/extrabin\python.exe"` succeeds while
`dir "%GISBASE%/extrabin/python.exe"` fails at the DOS prompt)
some random google hit shows it might need assoc + ftype as well, so I add
this all together in C:\GRASS-6-SVN\grass64.bat just after the "set
PYTHONHOME":
{{{
set .py="%GRASSDIR%\extrabin\python.exe"
assoc .py=Python.File
ftype Python.File="%GRASSDIR%\extrabin\python.exe" "%1" "%*"
assoc .pyw=Python.NoConFile
ftype Python.NoConFile="%GRASSDIR%\extrabin\pythonw.exe" "%1" "%*"
}}}
and then "cd C:\GRASS-6-SVN\etc\gui\scripts" and v.type_wrapper<enter>
finally launches python, but gives a "unknown option -e" error and shows
the python.exe usage text.
should {{{ set PYTHONPATH="%GRASSDIR%\etc\python" }}} be set in
C:\GRASS-6-SVN\grass64.bat as well?
?,
Hamish
--
Ticket URL: <https://trac.osgeo.org/grass/ticket/580#comment:4>
GRASS GIS <http://grass.osgeo.org>
More information about the grass-dev
mailing list