python in windows?

2 messages Options
Embed this post
Permalink
Michael Barton

python in windows?

Reply Threaded More More options
Print post
Permalink
Some javascript/style in this post has been disabled (why?)
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


_______________________________________________
grass-dev mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/grass-dev
hamish-2

Re: python in windows?

Reply Threaded More More options
Print post
Permalink
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




_______________________________________________
grass-dev mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/grass-dev