[issue21496] pyvenv activate_this.py

couplewavylines report at bugs.python.org
Wed May 14 15:17:14 CEST 2014


couplewavylines added the comment:

"run the command directly...would run with the venv's environment":  I'm sorry I didn't realize this, the "You don’t specifically need to activate an environment..." part of the venv docs didn't sink in for me when I read it earlier.

So yes, using a subprocess will do what I'm after.

I don't know if the subprocess will cover the situation in that link where they're using execfile on activate_this, but I was just trying to find a common-looking use-case for activate_this.

----------

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


More information about the Python-bugs-list mailing list