René's URL Explorer Experiment


Title: [3.15] gh-158540: Add the profiled script's directory to sys.path (GH-158548) by miss-islington · Pull Request #158844 · python/cpython · GitHub

Open Graph Title: [3.15] gh-158540: Add the profiled script's directory to sys.path (GH-158548) by miss-islington · Pull Request #158844 · python/cpython

X Title: [3.15] gh-158540: Add the profiled script's directory to sys.path (GH-158548) by miss-islington · Pull Request #158844 · python/cpython

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

Open Graph Description: profiling.sampling: run script.py does not put the script's directory on sys.path, so sibling imports fail #158540: Add the profiled script's directory to sys.path When a script is profile...

X Description: profiling.sampling: run script.py does not put the script's directory on sys.path, so sibling imports fail #158540: Add the profiled script's directory to sys.path When a script is...

Mail addresses
eduardo.villalpando.mello@gmail.com
53343436+hetaozdh@users.noreply.github.com
eduardo.villalpando.mello@gmail.com

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

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:aab0df23-8cfd-e3a1-7eaf-aa97f8e2e1d9
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idA218:27E5CD:40262FC:51F23F7:6B02154F
html-safe-nonce3228c79fdb9a3a317ed6bce7d6308a3dd9eb76fee6b4f67528fd77e15b43f8bb
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMjE4OjI3RTVDRDo0MDI2MkZDOjUxRjIzRjc6NkIwMjE1NEYiLCJ2aXNpdG9yX2lkIjoiNDkyNTA1NjA4MTIwMzQzNDgzMSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacfdfc39369d655d177869c26096907b1ae1fab0e8a22848826d7d8c105b075c2b
hovercard-subject-tagpull_request:4745950667
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/python/cpython/158844/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/be34c62a4d613f32d46d3fa3231629b8e88a460767d17d08a7208da46ef5c1d5/python/cpython/pull/158844
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/be34c62a4d613f32d46d3fa3231629b8e88a460767d17d08a7208da46ef5c1d5/python/cpython/pull/158844
og:image:altprofiling.sampling: run script.py does not put the script's directory on sys.path, so sibling imports fail #158540: Add the profiled script's directory to sys.path When a script is profile...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamemiss-islington
hostnamegithub.com
expected-hostnamegithub.com
None87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456
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
release423dbb54c5e7bfecc838eb387c1435eb3d0e760d
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/python/cpython/pull/158844#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F158844
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
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
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://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
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F158844
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/pull/158844
Reloadhttps://github.com/python/cpython/pull/158844
Reloadhttps://github.com/python/cpython/pull/158844
pythonhttps://github.com/python
cpythonhttps://github.com/python/cpython
Codehttps://github.com/python/cpython
Issues5k+ (5k+)https://github.com/python/cpython/issues
Pull requests2.4k (2.4k)https://github.com/python/cpython/pulls
Actionshttps://github.com/python/cpython/actions
Projectshttps://github.com/python/cpython/projects
Security and qualityhttps://github.com/python/cpython/security
Insightshttps://github.com/python/cpython/insights
https://github.com/python/cpython
pablogsalhttps://github.com/pablogsal
python:3.15https://github.com/python/cpython/tree/3.15
miss-islington:backport-3f02aab-3.15https://github.com/miss-islington/cpython/tree/backport-3f02aab-3.15
Conversationhttps://github.com/python/cpython/pull/158844
Commits1 (1)https://github.com/python/cpython/pull/158844/commits
Checkshttps://github.com/python/cpython/pull/158844/checks
Files changedhttps://github.com/python/cpython/pull/158844/files
[3.15] gh-158540: Add the profiled script's directory to sys.path (GH-158548)https://github.com/python/cpython/pull/158844#top
pablogsalhttps://github.com/pablogsal
python:3.15https://github.com/python/cpython/tree/3.15
miss-islington:backport-3f02aab-3.15https://github.com/miss-islington/cpython/tree/backport-3f02aab-3.15
https://github.com/miss-islington
miss-islingtonhttps://github.com/miss-islington
Oct 5, 2026https://github.com/python/cpython/pull/158844#issue-5713228462
profiling.sampling: run script.py does not put the script's directory on sys.path, so sibling imports fail #158540https://github.com/python/cpython/issues/158540
profiling.sampling: run script.py does not put the script's directory on sys.path, so sibling imports fail #158540https://github.com/python/cpython/issues/158540
3f02aabhttps://github.com/python/cpython/commit/3f02aab9faa338853425da23541e44e4bd24d478
Please reload this pagehttps://github.com/python/cpython/pull/158844
https://github.com/hetaozdh
https://github.com/edvilme
https://github.com/miss-islington
pythongh-158540https://github.com/python/cpython/issues/158540
: Add the profiled script's directory to sys.path (https://github.com/python/cpython/pull/158844/commits/7dcfe9e7bbb522a11dff7575b27c8f8bc8c6f7a6
pyt…https://github.com/python/cpython/pull/158548
7dcfe9ehttps://github.com/python/cpython/pull/158844/commits/7dcfe9e7bbb522a11dff7575b27c8f8bc8c6f7a6
…honGH-158548https://github.com/python/cpython/pull/158548
pythongh-158540https://github.com/python/cpython/issues/158540
pythongh-158540https://github.com/python/cpython/issues/158540
3f02aabhttps://github.com/miss-islington/cpython/commit/3f02aab9faa338853425da23541e44e4bd24d478
https://github.com/miss-islington
miss-islingtonhttps://github.com/miss-islington
pablogsalhttps://github.com/pablogsal
code ownerhttps://github.com/python/cpython/blob/fce28da9b75d429a7b65eec450df8e804fada001/.github/CODEOWNERS#L553
October 5, 2026 13:52https://github.com/python/cpython/pull/158844#event-32513997684
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
Oct 5, 2026 https://github.com/python/cpython/pull/158844#ref-issue-5654716572
profiling.sampling: run script.py does not put the script's directory on sys.path, so sibling imports fail #158540 https://github.com/python/cpython/issues/158540
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
awaiting review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20review%22
Oct 5, 2026https://github.com/python/cpython/pull/158844#event-32514002266
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
Oct 5, 2026 https://github.com/python/cpython/pull/158844#ref-pullrequest-5657232290
gh-158540: Add the profiled script's directory to sys.path #158548 https://github.com/python/cpython/pull/158548
https://github.com/pablogsal
pablogsalhttps://github.com/pablogsal
October 5, 2026 13:53https://github.com/python/cpython/pull/158844#event-32514110389
https://github.com/pablogsal
pablogsalhttps://github.com/pablogsal
f52d831https://github.com/python/cpython/commit/f52d831397ec77cf969c71c1ef339c1e28494eca
Oct 5, 2026https://github.com/python/cpython/pull/158844#event-32519079392
Please reload this pagehttps://github.com/python/cpython/pull/158844
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
awaiting review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20review%22
Oct 5, 2026https://github.com/python/cpython/pull/158844#event-32519085247
https://github.com/miss-islington
miss-islingtonhttps://github.com/miss-islington
October 5, 2026 14:50https://github.com/python/cpython/pull/158844#event-32519087527
https://github.com/pablogsal
pablogsalhttps://github.com/pablogsal
Oct 5, 2026 https://github.com/python/cpython/pull/158844#ref-pullrequest-5715678122
[3.15] Revert backports merged during the 3.15.0 release freeze on 5 October #158873 https://github.com/python/cpython/pull/158873
pablogsalhttps://github.com/pablogsal
Oct 5, 2026 https://github.com/python/cpython/pull/158844#ref-commit-078fa23
https://github.com/pablogsal
Revert "[3.15]https://github.com/pablogsal/cpython/commit/078fa23168d667ac87d4c869e7221386685eb0cb
pythongh-158540https://github.com/python/cpython/issues/158540
: Add the profiled script's directory t…https://github.com/pablogsal/cpython/commit/078fa23168d667ac87d4c869e7221386685eb0cb
078fa23https://github.com/pablogsal/cpython/commit/078fa23168d667ac87d4c869e7221386685eb0cb
pythonGH-158548https://github.com/python/cpython/pull/158548
python#158844https://github.com/python/cpython/pull/158844
f52d831https://github.com/pablogsal/cpython/commit/f52d831397ec77cf969c71c1ef339c1e28494eca
pablogsalhttps://github.com/pablogsal
Oct 11, 2026 https://github.com/python/cpython/pull/158844#ref-commit-4ceb3fa
https://github.com/pablogsal
https://github.com/miss-islington
https://github.com/maurycy
https://github.com/claude
https://github.com/vstinner
https://github.com/StanFromIreland
https://github.com/tonghuaroot
https://github.com/hetaozdh
https://github.com/edvilme
https://github.com/deadlovelll
[3.15] Restore deferred backports for 3.15.1, includinghttps://github.com/python/cpython/commit/4ceb3faf2c1f5bf17c56be085c4b1c1b38e47f9e
GH-158874https://github.com/python/cpython/pull/158874
(https://github.com/python/cpython/commit/4ceb3faf2c1f5bf17c56be085c4b1c1b38e47f9e
#1…https://github.com/python/cpython/pull/158882
4ceb3fahttps://github.com/python/cpython/commit/4ceb3faf2c1f5bf17c56be085c4b1c1b38e47f9e
…58882https://github.com/python/cpython/pull/158882
gh-153364https://github.com/python/cpython/issues/153364
GH-153365https://github.com/python/cpython/pull/153365
#158813https://github.com/python/cpython/pull/158813
gh-153364https://github.com/python/cpython/issues/153364
GH-153365https://github.com/python/cpython/pull/153365
e0861c6https://github.com/python/cpython/commit/e0861c6ae70c7e6f16c28399bd2b28c521e11e84
9e401cfhttps://github.com/python/cpython/commit/9e401cf7f5a53d8b46702e6c4bcb8849b9bf2829
gh-155811https://github.com/python/cpython/issues/155811
GH-155828https://github.com/python/cpython/pull/155828
#158829https://github.com/python/cpython/pull/158829
gh-155811https://github.com/python/cpython/issues/155811
5fecd44https://github.com/python/cpython/commit/5fecd448bb120378978a37dde65dfce233d88c0d
0281240https://github.com/python/cpython/commit/028124039c276f73fbc26036f1629c91be4c2891
gh-151292https://github.com/python/cpython/issues/151292
GH-152892https://github.com/python/cpython/pull/152892
#158830https://github.com/python/cpython/pull/158830
gh-151292https://github.com/python/cpython/issues/151292
GH-152892https://github.com/python/cpython/pull/152892
gh-151292https://github.com/python/cpython/issues/151292
f839c06https://github.com/python/cpython/commit/f839c061d383bc87c3456d19bbdcbc1c30ed399b
8a7c23fhttps://github.com/python/cpython/commit/8a7c23f316a6bdb3cc60c6920d465d2a81d3cf35
gh-158583https://github.com/python/cpython/issues/158583
GH-158584https://github.com/python/cpython/pull/158584
#158691https://github.com/python/cpython/pull/158691
gh-158583https://github.com/python/cpython/issues/158583
GH-158584https://github.com/python/cpython/pull/158584
9d22a53https://github.com/python/cpython/commit/9d22a5334bd5273962adceeb697a1337e9a0ca21
4f7af46https://github.com/python/cpython/commit/4f7af46e25f09bf54b6f499c5c40b661786f0d69
gh-154194https://github.com/python/cpython/issues/154194
GH-154195https://github.com/python/cpython/pull/154195
#158831https://github.com/python/cpython/pull/158831
gh-154194https://github.com/python/cpython/issues/154194
#154195https://github.com/python/cpython/pull/154195
#157790https://github.com/python/cpython/pull/157790
7d25916https://github.com/python/cpython/commit/7d25916b41de4fc28e04b4944864ad1094a9e8e0
c27f494https://github.com/python/cpython/commit/c27f4940612b094fe225875a815f8ee6a4f7f9ec
GH-158625https://github.com/python/cpython/pull/158625
#158832https://github.com/python/cpython/pull/158832
#158625https://github.com/python/cpython/pull/158625
b93fb19https://github.com/python/cpython/commit/b93fb19a6e3118857d9a1dc4ffcc179b632a88c1
1bc78dehttps://github.com/python/cpython/commit/1bc78dea18dfaff6900eeac5edb1ca651ff700d7
gh-156810https://github.com/python/cpython/issues/156810
GH-156811https://github.com/python/cpython/pull/156811
#156814https://github.com/python/cpython/pull/156814
gh-156810https://github.com/python/cpython/issues/156810
GH-156811https://github.com/python/cpython/pull/156811
c3706f4https://github.com/python/cpython/commit/c3706f4c687d76b85702c1f946abd3f3d3eafcb8
fce28dahttps://github.com/python/cpython/commit/fce28da9b75d429a7b65eec450df8e804fada001
gh-158552https://github.com/python/cpython/issues/158552
GH-158802https://github.com/python/cpython/pull/158802
#158845https://github.com/python/cpython/pull/158845
gh-158552https://github.com/python/cpython/issues/158552
GH-158802https://github.com/python/cpython/pull/158802
gh-158552https://github.com/python/cpython/issues/158552
1643525https://github.com/python/cpython/commit/1643525f0f89438d87daf4cdbb1cbb1de9df08e8
31288dahttps://github.com/python/cpython/commit/31288da21d4536eccd8df2e8222687919164e867
gh-152721https://github.com/python/cpython/issues/152721
GH-152722https://github.com/python/cpython/pull/152722
#158850https://github.com/python/cpython/pull/158850
GH-152722https://github.com/python/cpython/pull/152722
ebaca2ahttps://github.com/python/cpython/commit/ebaca2ac2d3ac29cd2760b6a5e4617c3fc5f6333
gh-156545https://github.com/python/cpython/issues/156545
GH-156546https://github.com/python/cpython/pull/156546
#158851https://github.com/python/cpython/pull/158851
GH-156546https://github.com/python/cpython/pull/156546
0ac7217https://github.com/python/cpython/commit/0ac721704092d8f96720c6fd1d68c5941a4a530a
gh-158540https://github.com/python/cpython/issues/158540
GH-158548https://github.com/python/cpython/pull/158548
#158844https://github.com/python/cpython/pull/158844
gh-158540https://github.com/python/cpython/issues/158540
GH-158548https://github.com/python/cpython/pull/158548
gh-158540https://github.com/python/cpython/issues/158540
gh-158540https://github.com/python/cpython/issues/158540
3f02aabhttps://github.com/python/cpython/commit/3f02aab9faa338853425da23541e44e4bd24d478
f52d831https://github.com/python/cpython/commit/f52d831397ec77cf969c71c1ef339c1e28494eca
gh-153838https://github.com/python/cpython/issues/153838
GH-153839https://github.com/python/cpython/pull/153839
#158853https://github.com/python/cpython/pull/158853
GH-153839https://github.com/python/cpython/pull/153839
48998dfhttps://github.com/python/cpython/commit/48998df2510c0daa837f98bbbbe6cc49ef60dc43
gh-158539https://github.com/python/cpython/issues/158539
GH-158581https://github.com/python/cpython/pull/158581
#158852https://github.com/python/cpython/pull/158852
gh-158539https://github.com/python/cpython/issues/158539
GH-158581https://github.com/python/cpython/pull/158581
GH-158581https://github.com/python/cpython/pull/158581
gh-158539https://github.com/python/cpython/issues/158539
gh-158539https://github.com/python/cpython/issues/158539
gh-158539https://github.com/python/cpython/issues/158539
d625ecbhttps://github.com/python/cpython/commit/d625ecbb8d36b7dd26c61b13d1c97de117d36642
gh-158522https://github.com/python/cpython/issues/158522
GH-158526https://github.com/python/cpython/pull/158526
#158870https://github.com/python/cpython/pull/158870
a904b39https://github.com/python/cpython/commit/a904b397ed324e404a8abd682b056c146cb48263
gh-156545https://github.com/python/cpython/issues/156545
gh-158539https://github.com/python/cpython/issues/158539
#158874https://github.com/python/cpython/pull/158874
114de19https://github.com/python/cpython/commit/114de198c0a05d8169cdbbd8f1e0976dc1319284
ce5ae29https://github.com/python/cpython/commit/ce5ae29ef9b8ccb32683c922d135339311c36c9d
https://github.co/hiddenchars
https://github.com/python/cpython/pull/{{ revealButtonHref }}
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F158844
https://github.com/pablogsal
pablogsal https://github.com/pablogsal
Please reload this pagehttps://github.com/python/cpython/pull/158844
Please reload this pagehttps://github.com/python/cpython/pull/158844
https://github.com/miss-islington
https://github.com/pablogsal
https://github.com/hetaozdh
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.