[Tutor] Setting PYTHONPATH and other env vars dynamically

Jramak jramak345 at gmail.com
Wed Aug 19 22:37:39 CEST 2009


 Thanks for all the insight, everyone.

I was originally thinking of writing a bash or bat script that would set the
PYTHONPATH and other environment variables before running the specific
application code. It seemed to be the most simplest solution. There are no
other applications that rely on the PYTHONPATH. As Alan said this might
result in surprises

So a combo solution where in the env vars would be in an .ini file and the
path is set in sys.path would be, IMHO a good way to go.. it's simple. I
also looked at virtualenv http://pypi.python.org/pypi/virtualenv . Each
virtual env takes up 2.3 MB. To me this seems a bit of overkill, but this
will enable you to run Python24, Python25, Python26 etc specific code on one
computer.
Jramak
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20090819/f988ebd1/attachment.htm>


More information about the Tutor mailing list