[issue21496] pyvenv activate_this.py

Attila-Mihaly Balazs report at bugs.python.org
Thu Jul 7 06:07:59 EDT 2016


Attila-Mihaly Balazs added the comment:

Hello,

A scenario where this would be needed (and where you can't just "execute the script with the python from inside the pyvenv" to get it automatically activate) is when running under mod_wsgi. There sometimes it is needed to activate the virtualenv "on the fly" from inside the application.wsgi.

Just taking activate_this.py from virtualenv and dropping it into env/bin seems to work nicely, so perhaps that could become the official solution?

----------
nosy: +Attila-Mihaly Balazs

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue21496>
_______________________________________


More information about the Python-bugs-list mailing list