Vinay Sajip added the comment: You say "from other Python code", but you mean running an external command in a subprocess, right? If you know where that command is (which you would need to in order to invoke activate_this on the appropriate venv) then you could run the command directly from its bin folder in the venv, and it would run with the venv's environment (interpreter, sys.path etc.)
---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue21496> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com