Message351722
The difference is that launching sys._base_executable *without* __PYVENV_LAUNCHER__ set (because env is not being passed) should lose you access to anything installed into the venv. You may also need to import something from the venv in order to see the issue.
Launching sys.executable will hit the launcher that sets the environment variable. Setting the environment correctly and launching sys._base_executable will also load correctly. The latter is theoretically required for correct handle sharing, but that may depend on which Windows version you're running.
I'd like to see both changes in the PR. Just setting the environment variable doesn't really improve the situation at all. |
|
Date |
User |
Action |
Args |
2019-09-10 16:13:26 | steve.dower | set | recipients:
+ steve.dower, paul.moore, pitrou, tim.golden, zach.ware, pierreglaser |
2019-09-10 16:13:26 | steve.dower | set | messageid: <1568132006.72.0.556997895631.issue38092@roundup.psfhosted.org> |
2019-09-10 16:13:26 | steve.dower | link | issue38092 messages |
2019-09-10 16:13:26 | steve.dower | create | |
|