René's URL Explorer Experiment


Title: gh-149819: fix .pth and .start file processing in subprocess when inheriting PYTHONPATH by warsaw · Pull Request #150177 · python/cpython · GitHub

Open Graph Title: gh-149819: fix .pth and .start file processing in subprocess when inheriting PYTHONPATH by warsaw · Pull Request #150177 · python/cpython

X Title: gh-149819: fix .pth and .start file processing in subprocess when inheriting PYTHONPATH by warsaw · Pull Request #150177 · python/cpython

Description: The Python programming language. Contribute to python/cpython development by creating an account on GitHub.

Open Graph Description: Followup to #149888 and #149819 - Fix by @IntentBug in the original PR, with test cases and review by @warsaw Issue: New site.py implementation fails to load .pth files in subprocesses #149819

X Description: Followup to #149888 and #149819 - Fix by @IntentBug in the original PR, with test cases and review by @warsaw Issue: New site.py implementation fails to load .pth files in subprocesses #149819

Opengraph URL: https://github.com/python/cpython/pull/150177

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/checks(.:format)
route-controllerpull_requests
route-actionchecks
fetch-noncev2:e69ba39c-55b4-395b-c478-1ea678da83a4
current-catalog-service-hash87dc3bc62d9b466312751bfd5f889726f4f1337bdff4e8be7da7c93d6c00a25a
request-id9210:3F5706:20264B:2D0596:6A58624A
html-safe-nonce5110c63bd4d94b813c15725d027f340dfcdddd9b78cebb0f9fd59523dc6477fc
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MjEwOjNGNTcwNjoyMDI2NEI6MkQwNTk2OjZBNTg2MjRBIiwidmlzaXRvcl9pZCI6Ijg4MzQ2NjI1MzAzODk5MjY0NzQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacc14dc9b8fd481d0e9385d7a021ddac1a582936a1f130c9096a434c67bc565b3b
hovercard-subject-tagpull_request:3721299750
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,checks,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/checks
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/python/cpython/pull/150177/checks
twitter:imagehttps://opengraph.githubassets.com/01135995c8246711158d9d6bc8491e8c54fb926a808808c4ea559bf4cc50e19e/python/cpython/pull/150177
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/01135995c8246711158d9d6bc8491e8c54fb926a808808c4ea559bf4cc50e19e/python/cpython/pull/150177
og:image:altFollowup to #149888 and #149819 - Fix by @IntentBug in the original PR, with test cases and review by @warsaw Issue: New site.py implementation fails to load .pth files in subprocesses #149819
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamewarsaw
hostnamegithub.com
expected-hostnamegithub.com
None5f2a0c7865178af3d91dd9f13b0cdfc3c73a2529c873d2780bb4c01271a57ec6
turbo-cache-controlno-cache
go-importgithub.com/python/cpython git https://github.com/python/cpython.git
octolytics-dimension-user_id1525981
octolytics-dimension-user_loginpython
octolytics-dimension-repository_id81598961
octolytics-dimension-repository_nwopython/cpython
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id81598961
octolytics-dimension-repository_network_root_nwopython/cpython
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release8aae7b8d6caacacf5c66eaeb2702d8dc88d85b4a
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/150177/checks#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F150177%2Fchecks
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F150177%2Fchecks
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Fchecks&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/pull/150177/checks
Reloadhttps://github.com/python/cpython/pull/150177/checks
Reloadhttps://github.com/python/cpython/pull/150177/checks
Please reload this pagehttps://github.com/python/cpython/pull/150177/checks
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/150177/checks
Notifications https://github.com/login?return_to=%2Fpython%2Fcpython
Fork 35k https://github.com/login?return_to=%2Fpython%2Fcpython
Star 73.8k https://github.com/login?return_to=%2Fpython%2Fcpython
Code https://github.com/python/cpython
Issues 5k+ https://github.com/python/cpython/issues
Pull requests 2.3k https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects https://github.com/python/cpython/projects
Security and quality 0 https://github.com/python/cpython/security
Insights https://github.com/python/cpython/pulse
Code https://github.com/python/cpython
Issues https://github.com/python/cpython/issues
Pull requests https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects https://github.com/python/cpython/projects
Security and quality https://github.com/python/cpython/security
Insights https://github.com/python/cpython/pulse
warsawhttps://github.com/warsaw
python:mainhttps://github.com/python/cpython/tree/main
warsaw:gh-149819-fix-pth-subprocesshttps://github.com/warsaw/cpython/tree/gh-149819-fix-pth-subprocess
Conversationhttps://github.com/python/cpython/pull/150177
Commits6 (6)https://github.com/python/cpython/pull/150177/commits
Checkshttps://github.com/python/cpython/pull/150177/checks
Files changedhttps://github.com/python/cpython/pull/150177/files
gh-149819: fix .pth and .start file processing in subprocess when inheriting PYTHONPATHhttps://github.com/python/cpython/pull/150177/checks#top
warsawhttps://github.com/warsaw
python:mainhttps://github.com/python/cpython/tree/main
warsaw:gh-149819-fix-pth-subprocesshttps://github.com/warsaw/cpython/tree/gh-149819-fix-pth-subprocess
Please reload this pagehttps://github.com/python/cpython/pull/150177/checks
Sign in for the full log viewhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F150177%2Fchecks
Lint on: pull_request https://github.com/python/cpython/actions/runs/26250799165
lint https://github.com/python/cpython/actions/runs/26250799165/job/77261073614?pr=150177
Check labels on: pull_request https://github.com/python/cpython/actions/runs/26250799183
DO-NOT-MERGE https://github.com/python/cpython/actions/runs/26250799183/job/77261073305?pr=150177
Unresolved review https://github.com/python/cpython/actions/runs/26250799183/job/77261073330?pr=150177
Tests on: pull_request https://github.com/python/cpython/actions/runs/26250799244
Change detection / Create context from changed files https://github.com/python/cpython/actions/runs/26250799244/job/77271983275?pr=150177
Docs / Docs https://github.com/python/cpython/actions/runs/26250799244/job/77271985537?pr=150177
Docs / Doctest https://github.com/python/cpython/actions/runs/26250799244/job/77271985159?pr=150177
Docs / Check EPUB https://github.com/python/cpython/actions/runs/26250799244/job/77271985546?pr=150177
Docs / Check for removed HTML IDs / Check for removed HTML IDs https://github.com/python/cpython/actions/runs/26250799244/job/77271987793?pr=150177
Check if Autoconf files are up to date https://github.com/python/cpython/actions/runs/26250799244/job/77271984297?pr=150177
Check if generated files are up to date https://github.com/python/cpython/actions/runs/26250799244/job/77271984299?pr=150177
C API Docs / Check if all C APIs are documented https://github.com/python/cpython/actions/runs/26250799244/job/77271984198?pr=150177
Windows / Build and test (x64, switch-case) https://github.com/python/cpython/actions/runs/26250799244/job/77271984829?pr=150177
Windows (free-threading) / Build and test (x64, switch-case) https://github.com/python/cpython/actions/runs/26250799244/job/77271984568?pr=150177
Windows / Build and test (Win32, switch-case) https://github.com/python/cpython/actions/runs/26250799244/job/77271984926?pr=150177
Windows / Build and test (arm64, switch-case) https://github.com/python/cpython/actions/runs/26250799244/job/77271984910?pr=150177
Windows (free-threading) / Build and test (arm64, switch-case) https://github.com/python/cpython/actions/runs/26250799244/job/77271985196?pr=150177
Windows / Build and test (x64, tail-call) https://github.com/python/cpython/actions/runs/26250799244/job/77271985121?pr=150177
Windows (free-threading) / Build and test (x64, tail-call) https://github.com/python/cpython/actions/runs/26250799244/job/77271984862?pr=150177
Windows MSI${{ '' }} https://github.com/python/cpython/actions/runs/26250799244/job/77271984193?pr=150177
macOS / build and test (macos-26) https://github.com/python/cpython/actions/runs/26250799244/job/77271984812?pr=150177
macOS (free-threading) / build and test (macos-26) https://github.com/python/cpython/actions/runs/26250799244/job/77271985158?pr=150177
macOS / build and test (macos-26-intel) https://github.com/python/cpython/actions/runs/26250799244/job/77271985218?pr=150177
Ubuntu / build and test (ubuntu-24.04) https://github.com/python/cpython/actions/runs/26250799244/job/77271984837?pr=150177
Ubuntu / build and test (ubuntu-24.04-arm) https://github.com/python/cpython/actions/runs/26250799244/job/77271984943?pr=150177
Ubuntu (free-threading) / build and test (ubuntu-24.04) https://github.com/python/cpython/actions/runs/26250799244/job/77271985031?pr=150177
Ubuntu (free-threading) / build and test (ubuntu-24.04-arm) https://github.com/python/cpython/actions/runs/26250799244/job/77271984857?pr=150177
Ubuntu (bolt) / build and test (ubuntu-24.04) https://github.com/python/cpython/actions/runs/26250799244/job/77271985118?pr=150177
Ubuntu SSL tests (ubuntu-24.04, openssl, 1.1.1w) https://github.com/python/cpython/actions/runs/26250799244/job/77271984079?pr=150177
Ubuntu SSL tests (ubuntu-24.04, openssl, 3.0.20) https://github.com/python/cpython/actions/runs/26250799244/job/77271984537?pr=150177
Ubuntu SSL tests (ubuntu-24.04, openssl, 3.3.7) https://github.com/python/cpython/actions/runs/26250799244/job/77271984381?pr=150177
Ubuntu SSL tests (ubuntu-24.04, openssl, 3.4.5) https://github.com/python/cpython/actions/runs/26250799244/job/77271984916?pr=150177
Ubuntu SSL tests (ubuntu-24.04, openssl, 3.5.6) https://github.com/python/cpython/actions/runs/26250799244/job/77271984726?pr=150177
Ubuntu SSL tests (ubuntu-24.04, openssl, 3.6.2) https://github.com/python/cpython/actions/runs/26250799244/job/77271984519?pr=150177
Ubuntu SSL tests (ubuntu-24.04, openssl, 4.0.0) https://github.com/python/cpython/actions/runs/26250799244/job/77271985004?pr=150177
Ubuntu SSL tests (ubuntu-24.04, aws-lc, 1.72.1) https://github.com/python/cpython/actions/runs/26250799244/job/77271985195?pr=150177
Android (aarch64) https://github.com/python/cpython/actions/runs/26250799244/job/77271984629?pr=150177
Android (x86_64) https://github.com/python/cpython/actions/runs/26250799244/job/77271984307?pr=150177
iOS https://github.com/python/cpython/actions/runs/26250799244/job/77271984239?pr=150177
Emscripten / build and test https://github.com/python/cpython/actions/runs/26250799244/job/77271984578?pr=150177
WASI / build and test https://github.com/python/cpython/actions/runs/26250799244/job/77271984405?pr=150177
Hypothesis tests on Ubuntu https://github.com/python/cpython/actions/runs/26250799244/job/77271984122?pr=150177
Address sanitizer (ubuntu-24.04) https://github.com/python/cpython/actions/runs/26250799244/job/77271984150?pr=150177
Sanitizers / TSan https://github.com/python/cpython/actions/runs/26250799244/job/77271985305?pr=150177
Sanitizers / TSan (free-threading) https://github.com/python/cpython/actions/runs/26250799244/job/77271985370?pr=150177
Sanitizers / UBSan https://github.com/python/cpython/actions/runs/26250799244/job/77271984690?pr=150177
Cross build Linux https://github.com/python/cpython/actions/runs/26250799244/job/77271984231?pr=150177
CIFuzz${{ '' }} https://github.com/python/cpython/actions/runs/26250799244/job/77271984435?pr=150177
All required checks pass https://github.com/python/cpython/actions/runs/26250799244/job/77275113833?pr=150177
Check labels on: pull_request https://github.com/python/cpython/actions/runs/26254911569
DO-NOT-MERGE https://github.com/python/cpython/actions/runs/26254911569/job/77275157547?pr=150177
Unresolved review https://github.com/python/cpython/actions/runs/26254911569/job/77275157491?pr=150177
Check labels on: pull_request https://github.com/python/cpython/actions/runs/26254924387
DO-NOT-MERGE https://github.com/python/cpython/actions/runs/26254924387/job/77275197834?pr=150177
Unresolved review https://github.com/python/cpython/actions/runs/26254924387/job/77275197865?pr=150177
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.