Skip to content
Navigation Menu
Sign in
Products
Platform
GitHub
Repository hosting, code review, and collaboration
Copilot
AI coding agent for tasks, projects and automated work
Build & Ship
Actions
CI/CD and automation
Code Quality
Quality analysis, fixes, and enforcement
Codespaces
Cloud development environments
Secure
Code Security
Vulnerability detection and remediation
Secret Protection
Secret scanning and leak prevention
All Features
Developers
Learn
Documentation
Training
Certifications
Build
Build with Copilot
Customize Copilot
Integrations
Explore
Trending repos
GitHub Sponsors
Events
Changelog
Changelog
Your source for the latest features, improvements, and fixes across GitHub products, all in one place.
Businesses
By Stage
Enterprises
Team
Startups
Nonprofits
By Industry
Healthcare
Financial services
Manufacturing
Government
See all industries
Evaluate GitHub
Why GitHub
Customer Stories
Business insights
Trust Center
Add-ons
GitHub Advanced Security
Enterprise-grade code security
Copilot for business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Resources
Learn & Connect
Documentation
Resource center
Blog
Events & webinars
Community Forum
Customer Stories
Integrations
Support
Customer support
Training
GitHub Status
Company
About
Partners
Changelog
GitHub Universe
GitHub Universe
The event for developers, by developers — talks, workshops, and what’s next for GitHub.
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
python
cpython
Repository navigation
Code
Issues
5k+
(5k+)
Pull requests
2.3k
(2.3k)
Actions
Projects
Security and quality
Insights
More
items
Commits
Breadcrumbs
History for
cpython
Modules
getpath.py
on
main
User selector
All users
Datepicker
All time
Commit history
Commits on Oct 22, 2026
gh-106045: Keep searching from venv home when the resolved base executable has no stdlib (#160123)
Show description for 5b55b50
itamaro
authored
5b55b50
View commit details
Copy full SHA for 5b55b50
View code at this point
Browse repository at this point
Commits on Oct 21, 2026
gh-106045: Fix venv path discovery for symlinked executables (#156483)
Show description for e07817d
jjhelmus
authored
e07817d
View commit details
Copy full SHA for e07817d
View code at this point
Browse repository at this point
Commits on Aug 21, 2026
gh-155254: Avoid warning about missing stdlib when using _pth files (GH-156015)
zooba
authored
f8c93d4
View commit details
Copy full SHA for f8c93d4
View code at this point
Browse repository at this point
Commits on Jun 16, 2026
gh-151544: Fixes CVE-2026-12003 by removing the fallback to %VPATH%/Modules/Setup.local for discovering sources in getpath.py (GH-151545)
zooba
authored
9e863fa
View commit details
Copy full SHA for 9e863fa
View code at this point
Browse repository at this point
Commits on Mar 9, 2026
GH-145273: don't skip missing platstdlib warning if stdlib_zip is found (#145544)
FFY00
authored
64d6c75
View commit details
Copy full SHA for 64d6c75
View code at this point
Browse repository at this point
Commits on Mar 2, 2026
GH-145273: skip stdlib warning on module_search_paths_set (#145442)
FFY00
authored
46c5c57
View commit details
Copy full SHA for 46c5c57
View code at this point
Browse repository at this point
GH-145273: drop build_prefix check from missing stdlib warning (#145437)
FFY00
authored
539a985
View commit details
Copy full SHA for 539a985
View code at this point
Browse repository at this point
GH-145273: warn when we can't find the standard library (#145274)
FFY00
authored
3ab39d2
View commit details
Copy full SHA for 3ab39d2
View code at this point
Browse repository at this point
Commits on Aug 19, 2025
gh-120037: Disable user site packages when a ._pth file is used (GH-137428)
zooba
authored
7d06a0a
View commit details
Copy full SHA for 7d06a0a
View code at this point
Browse repository at this point
Commits on Jul 4, 2025
gh-135773: have pyvenv.cfg without home key anchor a venv and deduce home (#135831)
Show description for 93263d4
rickeylev
authored
93263d4
View commit details
Copy full SHA for 93263d4
View code at this point
Browse repository at this point
Commits on Jan 31, 2025
GH-128469: Revert "warn when libpython was loaded from outside the build directory (#128645)" (#129506)
encukou
authored
31c82c2
View commit details
Copy full SHA for 31c82c2
View code at this point
Browse repository at this point
Commits on Jan 29, 2025
GH-128469: warn when libpython was loaded from outside the build directory (#128645)
Show description for 29b3ce8
FFY00
and
ZeroIntensity
authored
29b3ce8
View commit details
Copy full SHA for 29b3ce8
View code at this point
Browse repository at this point
Commits on Jan 8, 2025
GH-66409: check if exec_prefix is the same as prefix before searching executable_dir (#127974)
FFY00
authored
34e840f
View commit details
Copy full SHA for 34e840f
View code at this point
Browse repository at this point
Commits on Dec 15, 2024
GH-126985: Don't override venv detection with PYTHONHOME (#127968)
FFY00
authored
b74c8f5
View commit details
Copy full SHA for b74c8f5
View code at this point
Browse repository at this point
getpath: Add comments highlighing details of the pyvenv.cfg detection (#127966)
FFY00
authored
3683b2f
View commit details
Copy full SHA for 3683b2f
View code at this point
Browse repository at this point
Commits on Nov 26, 2024
GH-126985: move pyvenv.cfg detection from site to getpath (#126987)
FFY00
authored
2b0e2b2
View commit details
Copy full SHA for 2b0e2b2
View code at this point
Browse repository at this point
Commits on Nov 18, 2024
getpath: fix warning typo (#126978)
FFY00
authored
0063f5f
View commit details
Copy full SHA for 0063f5f
View code at this point
Browse repository at this point
Commits on Jul 11, 2024
gh-121103: Put free-threaded libraries in `lib/python3.14t` (#121293)
Show description for e8c91d9
colesbury
authored
e8c91d9
View commit details
Copy full SHA for e8c91d9
View code at this point
Browse repository at this point
Commits on Apr 24, 2024
gh-117786: Fix venv created from Windows Store install by restoring __PYVENV_LAUNCHER__ smuggling (GH-117814)
zooba
authored
4b10e20
View commit details
Copy full SHA for 4b10e20
View code at this point
Browse repository at this point
Commits on Nov 1, 2023
gh-106718: Treat PyConfig.stdlib_dir as highest-priority setting for stdlib_dir when calculating paths (GH-108730)
yilei
authored
834b7c1
View commit details
Copy full SHA for 834b7c1
View code at this point
Browse repository at this point
Commits on Oct 27, 2023
no-issue: Remove unused variable in getpath.py (gh-111372)
Satishpokala124
authored
74f0772
View commit details
Copy full SHA for 74f0772
View code at this point
Browse repository at this point
Commits on Feb 6, 2023
gh-101543: Ensure Windows registry path is only used when stdlib can't be found (GH-101544)
zooba
authored
7a25310
View commit details
Copy full SHA for 7a25310
View code at this point
Browse repository at this point
Commits on Jan 16, 2023
gh-100320: Fix path calculations on Windows when python.exe is moved outside of the normal location (GH-100947)
zooba
authored
df10571
View commit details
Copy full SHA for df10571
View code at this point
Browse repository at this point
Commits on Nov 14, 2022
gh-99370: Calculate zip path from prefix when in a venv (GH-99371)
Show description for e3d4fed
kkpattern
authored
e3d4fed
View commit details
Copy full SHA for e3d4fed
View code at this point
Browse repository at this point
Commits on Nov 10, 2022
gh-99204: Calculate base_executable by alternate names in POSIX venvs (GH-99206)
Show description for c41b13d
vfazio
authored
c41b13d
View commit details
Copy full SHA for c41b13d
View code at this point
Browse repository at this point
Commits on Nov 2, 2022
gh-98790: When DLLs directory is missing on Windows, assume executable_dir contains PYD files instead (GH-98936)
zooba
authored
3d889dc
View commit details
Copy full SHA for 3d889dc
View code at this point
Browse repository at this point
Commits on Aug 16, 2022
gh-96005: Handle WASI ENOTCAPABLE in getpath (GH-96006)
Show description for 48174fa
tiran
authored
48174fa
View commit details
Copy full SHA for 48174fa
View code at this point
Browse repository at this point
Commits on Aug 8, 2022
docs: Fix a few typos (#94899)
Show description for 32b49f6
timgates42
authored
32b49f6
View commit details
Copy full SHA for 32b49f6
View code at this point
Browse repository at this point
Commits on Jun 16, 2022
gh-91985: Ensure in-tree builds override platstdlib_dir in every path calculation (GH-93641)
neonene
authored
38af903
View commit details
Copy full SHA for 38af903
View code at this point
Browse repository at this point
Commits on May 19, 2022
gh-92913: Clarify changes to PyInitConfig.module_search_paths[_set] fields (GH-92980)
zooba
authored
403d16f
View commit details
Copy full SHA for 403d16f
View code at this point
Browse repository at this point
Commits on May 5, 2022
gh-57684: Add -P cmdline option and PYTHONSAFEPATH env var (#31542)
Show description for ada8b6d
vstinner
authored
ada8b6d
View commit details
Copy full SHA for ada8b6d
View code at this point
Browse repository at this point
Commits on Apr 5, 2022
bpo-46890: Fix setting of sys._base_executable with framework builds on macOS (GH-31958)
Show description for 6aaf4cd
ronaldoussoren
authored
6aaf4cd
View commit details
Copy full SHA for 6aaf4cd
View code at this point
Browse repository at this point
Commits on Mar 6, 2022
bpo-45582: Don't fail if ENV_PATH is None in getpath.py (GH-31699)
tiran
authored
55a5e17
View commit details
Copy full SHA for 55a5e17
View code at this point
Browse repository at this point
Commits on Jan 18, 2022
bpo-46028: Calculate base_executable by resolving symlinks in a venv (GH-30144)
zooba
authored
7407fe4
View commit details
Copy full SHA for 7407fe4
View code at this point
Browse repository at this point
Commits on Jan 7, 2022
bpo-46297: Fix interpreter crash on startup with multiple PythonPaths set in registry (GH-30466)
darktohka
authored
c9dc1f4
View commit details
Copy full SHA for c9dc1f4
View code at this point
Browse repository at this point
Previous
Next
You can’t perform that action at this time.