This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ronaldoussoren
Recipients Anders.Hovmöller, gvanrossum, jaraco, ned.deily, ronaldoussoren, tdsmith, vinay.sajip
Date 2018-09-23.14:53:28
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
I've added PR 9516 that just clears __PYVENV_LAUNCHER__ from the environment as soon as it is no longer needed.

A more involved change would be to change both the interpreter and the stub executable to avoid the need to use an environment variable in the first place:

- Add and "-X" flag to the interpreter to pass the information that's currently passed using an environment variable
- Change pythonw.c to add this new option to the argv vector.

This would be slightly cleaner, at the cost of having more complicated code (and is a change that would IMHO not qualify for a back port, while my current PR is minimal enough for a back port)

Note that both with and without this PR sys.executable points to the python executable inside the venv (when using a env).
Date User Action Args
2018-09-23 14:53:28ronaldoussorensetrecipients: + ronaldoussoren, gvanrossum, vinay.sajip, jaraco, ned.deily, Anders.Hovmöller, tdsmith
2018-09-23 14:53:28ronaldoussorensetmessageid: <>
2018-09-23 14:53:28ronaldoussorenlinkissue22490 messages
2018-09-23 14:53:28ronaldoussorencreate