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 Stephen Moore
Recipients Stephen Moore, ned.deily, ronaldoussoren
Date 2017-10-02.03:12:27
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1506913947.94.0.213398074469.issue31660@psf.upfronthosting.co.za>
In-reply-to
Content
Hi,

I've come across a problem whereby if you do an os.execv to a python3.6 virtualenv python inside python2.7 vs python3.6 then the resulting python session has a different sys.executable.

Where if you os.execv from python2.7 the sys.executable is equal to the virtualenv python

Whereas from python3.6 the resulting python session has a sys.executable of the system python.

An example of this in play can be found at https://gist.github.com/delfick/d750dc83e3b28e90cef8e2bfbd5b175a

Note that I don't see the problem if the virtualenv is based on python2.7 (https://gist.github.com/delfick/f1ad6872e2614189a7d98f2583ffc564)
History
Date User Action Args
2017-10-02 03:12:28Stephen Mooresetrecipients: + Stephen Moore, ronaldoussoren, ned.deily
2017-10-02 03:12:27Stephen Mooresetmessageid: <1506913947.94.0.213398074469.issue31660@psf.upfronthosting.co.za>
2017-10-02 03:12:27Stephen Moorelinkissue31660 messages
2017-10-02 03:12:27Stephen Moorecreate