Ronald Oussoren <ronaldousso...@mac.com> added the comment:

The difference in behaviour is because the executable does not look at argv[0] 
to find its location on macOS. Your trick therefore doesn't work.

I prefer the current behaviour.

What I don't understand is *why* you want to do this. If I read your report 
correctly you're trying to run an Python 3 executable outside of the virtual 
environment as if it is in the virtual environment. Why not just use the binary 
inside the virtual environment?

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue42312>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to