Virtualenv loses context
rhythmicdevil at gmail.com
rhythmicdevil at gmail.com
Wed Dec 19 09:23:00 EST 2012
I wrote this little test script to prove my virtualenv is reading from global site packages:
Script Content
from distutils.sysconfig import get_python_lib
print (get_python_lib())
Script Output
(botnet_etl)[swright at localhost app]$ python test.py
/usr/lib/python2.6/site-packages
(botnet_etl)[swright at localhost app]$
Please note that (botnet_etl) is the name of the virtualenv
More information about the Python-list
mailing list