[Python-ideas] Add a command line option to adjust sys.path? (was Re: Add a site.cfg to keep a persistent list of paths)

Scott Dial scott+python-ideas at scottdial.com
Sat Oct 23 06:55:35 CEST 2010


On 10/21/2010 2:43 AM, Nick Coghlan wrote:
> This idea is only aimed at developers. To run an actual Python
> application that needs additional modules, either install it properly
> or put it in a zipfile or directory, put a __main__.py at the top
> level and just run the zipfile/directory directly.

If this is only aimed at developers, then those developers why isn't,

PYTHONPATH="versionA:${PYTHONPATH}" python run_tests.py
PYTHONPATH="versionB:${PYTHONPATH}" python run_tests.py

, completely and utterly sufficient for the job.

-- 
Scott Dial
scott at scottdial.com
scodial at cs.indiana.edu



More information about the Python-ideas mailing list