X Tutup
The Wayback Machine - https://web.archive.org/web/20230329003238/https://github.com/python/cpython/pull/102986
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-102733: Stop the getsitepackages function from returning non site package directories on windows #102986

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

rprater
Copy link
Contributor

@rprater rprater commented Mar 24, 2023

Description

Stop the site.getsitepackages method from returning nonsite package directories on Windows.

Before

Python 3.10.10 (tags/v3.10.10:aad5f6a, Feb  7 2023, 17:20:36) [MSC v.1929 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import site
>>> site.getsitepackages()
['C:\\Users\\Administrator\\AppData\\Local\\Programs\\Python\\Python310', 'C:\\Users\\Administrator\\AppData\\Local\\Programs\\Python\\Python310\\lib\\site-packages']

After

Python 3.12.0a6+ (heads/issue-102733:e63679c328, Mar 24 2023, 22:54:23) [MSC v.1935 64 bit (AMD64)] on win32 on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import site
>>> site.getsitepackages()
['C:\\Users\\Administrator\\Documents\\rprater\\cpython\\Lib\\site-packages']

@rprater rprater marked this pull request as ready for review March 24, 2023 23:00
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.

None yet

2 participants
X Tutup