Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gh-91985: Fix sys.path calculation with PYTHONHOME on Windows (alt) #92321

Closed
wants to merge 8 commits into from
Closed

gh-91985: Fix sys.path calculation with PYTHONHOME on Windows (alt) #92321

wants to merge 8 commits into from

Conversation

neonene
Copy link
Contributor

@neonene neonene commented May 5, 2022

Alternative PR to #92288.
A build path overrides f'{PYTHONHOME}/DLLs' in sys.path, when pybuilddir.txt is found. And a new test runs in a temp directory where pybuilddir.txt doesn't exist.

Here is an output of C code in the description of #91985:

PYTHONHOME: C:\cpython-main

0
C:\cpython-main\PCbuild\amd64\python311.zip
C:\cpython-main\Lib
C:\cpython-main\PCbuild\amd64
C:\cpython-main
C:\cpython-main\Lib\site-packages

1
C:\cpython-main\PCbuild\amd64\python311.zip
C:\cpython-main\Lib
C:\cpython-main\PCbuild\amd64
C:\cpython-main
C:\cpython-main\Lib\site-packages

2
C:\cpython-main\PCbuild\amd64\python311.zip
C:\cpython-main\Lib
C:\cpython-main\PCbuild\amd64
C:\cpython-main
C:\cpython-main\Lib\site-packages

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants