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
3.14
User selector
All users
Datepicker
All time
Commit history
Commits on Oct 22, 2026
[3.14] gh-106045: Keep searching from venv home when the resolved base executable has no stdlib (GH-160123) (#160355)
Show description for 09fad5d
miss-islington
and
itamaro
authored
09fad5d
View commit details
Copy full SHA for 09fad5d
View code at this point
Browse repository at this point
Commits on Oct 21, 2026
[3.14] gh-106045: Fix venv path discovery for symlinked executables (GH-156483) (GH-160003)
Show description for 172c998
miss-islington
and
jjhelmus
authored
172c998
View commit details
Copy full SHA for 172c998
View code at this point
Browse repository at this point
Commits on Jun 22, 2026
[3.14] 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
b93d6d3
View commit details
Copy full SHA for b93d6d3
View code at this point
Browse repository at this point
Commits on Jul 4, 2025
[3.14] gh-135773: have pyvenv.cfg without home key anchor a venv and deduce home (GH-135831) (#136287)
Show description for f2f3edb
miss-islington
and
rickeylev
authored
f2f3edb
View commit details
Copy full SHA for f2f3edb
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
Commits on Dec 11, 2021
bpo-46049: Fixes ._pth support on non-Windows (GH-30051)
zooba
authored
bfc59ed
View commit details
Copy full SHA for bfc59ed
View code at this point
Browse repository at this point
Commits on Dec 10, 2021
bpo-45582: Fix test_embed failure during a PGO build on Windows (GH-30014)
Show description for 3f398a7
neonene
authored
3f398a7
View commit details
Copy full SHA for 3f398a7
View code at this point
Browse repository at this point
Commits on Dec 8, 2021
bpo-46015: Fixes calculation of sys.path in a venv on Windows (GH-29992)
Show description for 7778116
zooba
authored
7778116
View commit details
Copy full SHA for 7778116
View code at this point
Browse repository at this point
bpo-45582: Write empty pybuilddir.txt on Windows to allow relocatable build directories (GH-29979)
zooba
authored
b0b3086
View commit details
Copy full SHA for b0b3086
View code at this point
Browse repository at this point
Commits on Dec 7, 2021
bpo-45582: Ensure PYTHONHOME still overrides detected build prefixes (GH-29948)
zooba
authored
b7ef27b
View commit details
Copy full SHA for b7ef27b
View code at this point
Browse repository at this point
Commits on Dec 3, 2021
bpo-45582: Port getpath[p].c to Python (GH-29041)
Show description for 99fcf15
zooba
authored
99fcf15
View commit details
Copy full SHA for 99fcf15
View code at this point
Browse repository at this point
Loading
You can’t perform that action at this time.