Send grass-windows mailing list submissions to grass-windows@lists.osgeo.org
To subscribe or unsubscribe via the World Wide Web, visit http://lists.osgeo.org/mailman/listinfo/grass-windows or, via email, send a message with subject or body 'help' to grass-windows-requ...@lists.osgeo.org You can reach the person managing the list at grass-windows-ow...@lists.osgeo.org When replying, please edit your Subject line so it is more specific than "Re: Contents of grass-windows digest..." Today's Topics: 1. Re: Python collections module (Frank Broniewski) ---------------------------------------------------------------------- Message: 1 Date: Thu, 11 Feb 2010 08:29:18 +0100 From: "Frank Broniewski" <b...@metrico.lu> Subject: Re: [GRASS-windows] Python collections module To: "Luigi Ponti" <lpo...@infinito.it> Cc: grass-windows <grass-windows@lists.osgeo.org> Message-ID: <de1beb3355b74454920a0e3a08015...@pcfl01brfr> Content-Type: text/plain; format=flowed; charset="ISO-8859-3"; reply-type=response > Is the code above something that needs to go on top of every python/GRASS > script in order for it to work? I was assuming (wrongly, at this point) > that those environmental variables were supposed to be set by a startup > script. No, the PYTHONPATH needs to be set by you. You can do that in the batch file which starts grass or you can do that in every python application. I also append the etc/python/grass.py application to the search path. More info on the pythonpath env variable: http://docs.python.org/using/cmdline.html?highlight=pythonpath#envvar-PYTHONPATH I tend to do it in the python script because I have the feeling that this is more flexible than in the batch file. Frank ------------------------------ _______________________________________________ grass-windows mailing list grass-windows@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-windows End of grass-windows Digest, Vol 42, Issue 5 ********************************************