[GRASS-dev] PYTHONPATH question
Glynn Clements
glynn at gclements.plus.com
Tue Jul 29 22:58:31 EDT 2008
Michael Barton wrote:
> Anyway, it looks like the shebang should be #!/usr/bin/env python
> unless that is a problem on a non-Mac system. What about Windows?
For MSys, "#!/usr/bin/env python" is fine. Natively, Windows doesn't
understand #! syntax, so you would need to either:
1. Add a .py suffix and add .py to PATHEXT.
2. Create a .bat wrapper (as is currently done for shell scripts).
3. Explicitly invoke the script via python.
--
Glynn Clements <glynn at gclements.plus.com>
More information about the grass-dev
mailing list