I'm using Python 3.4, and having created a pyvenv, I'm looking to activate it from within a python process. With virtualenv, I used to use activate_this.py
, but that appears to be gone in pyvenv.
Is there now an easy way to effectively change the current interpreter to the virtualenv interpreter? I could probably mess around with the PATH (which is what activate_this.py
did), but I'd like a simpler and stabler way.
This is for use in a wsgi.py.
I used a different approach used in
virtualenv
itself: