[GRASS-dev] python in windows?

We have a python script that uses g_parser and runs find in Linux and Mac.

We can get it to open but not to actually read the input argument from the GUI in Windows.

Is there something special we need to do to make a GRASS Python script run in Windows?

Thanks
Michael


C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Arizona State University
Tempe, AZ 85287-2402
USA

voice: 480-965-6262; fax: 480-965-7671
www: http://csdc.asu.edu, http://shesc.asu.edu
http://www.public.asu.edu/~cmbarton

Michael Barton wrote:

We have a python script that uses
g_parser and runs find in Linux and Mac.
We can get it to open but not to actually read
the input argument from the GUI in
Windows.
Is there something special we need to do to make
a GRASS Python script run in Windows?

this is a similar problem as NVIZ has from the wxGui File menu or wx
Cmd> prompt.

Is the script somewhere in the $PATH / %PATH% ?

maybe these hints from trac #580 can help ?
  https://trac.osgeo.org/grass/ticket/580

rem ...make .py extension optional
set PATHEXT=%PATHEXT%;.PY

rem ...not sure, the following maybe does nothing
set .py="%GRASSDIR%\extrabin\python.exe"

rem ...these are important
assoc .py=Python.File
ftype Python.File="%GRASSDIR%\extrabin\python.exe" "%1" "%*"
assoc .pyw=Python.NoConFile
ftype Python.NoConFile="%GRASSDIR%\extrabin\pythonw.exe" "%1" "%*"

Hamish