Nick Coghlan added the comment: Since ensurepip needs to manipulate sys.path, I ended up running the "-m ensurepip" using the venv Python in a subprocess. This both avoids side effects on the current process and gets ensurepip the right target directory settings automatically.
---------- keywords: +patch nosy: +dstufft, ned.deily, vinay.sajip Added file: http://bugs.python.org/file32775/issue19552_venv_module_api.diff _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue19552> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com