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 steve.dower
Recipients christian.heimes, nedbat, pablogsal, saaketp, steve.dower, vinay.sajip
Date 2021-12-13.22:54:17
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1639436057.92.0.409019658146.issue46028@roundup.psfhosted.org>
In-reply-to
Content
Is sys._base_executable correct without a venv? It should be the same as sys.executable in that case.

venv calculates 'home' here: Lib/venv/__init__.py#L117

        executable = sys._base_executable
        dirname, exename = os.path.split(os.path.abspath(executable))
        context.executable = executable # not relevant to this bug
        context.python_dir = dirname    # written as "home = ..."

If the path doesn't exist later on, it's because it didn't exist in the first place. *That* could be the real bug.
History
Date User Action Args
2021-12-13 22:54:17steve.dowersetrecipients: + steve.dower, vinay.sajip, christian.heimes, nedbat, pablogsal, saaketp
2021-12-13 22:54:17steve.dowersetmessageid: <1639436057.92.0.409019658146.issue46028@roundup.psfhosted.org>
2021-12-13 22:54:17steve.dowerlinkissue46028 messages
2021-12-13 22:54:17steve.dowercreate