Title: bpo-32030: Fix Py_GetPath(): init program_name by vstinner · Pull Request #4665 · python/cpython · GitHub
Open Graph Title: bpo-32030: Fix Py_GetPath(): init program_name by vstinner · Pull Request #4665 · python/cpython
X Title: bpo-32030: Fix Py_GetPath(): init program_name by vstinner · Pull Request #4665 · python/cpython
Description: _PyMainInterpreterConfig_ReadEnv() now sets program_name from environment variables and pymain_parse_envvars() implements the falls back on argv[0]. Remove _PyMain.program_name: use the program_name from _PyMainInterpreterConfig Move the Py_SetProgramName() call back to pymain_init_python(), just before _Py_InitializeCore(). pathconfig_global_init() now also calls _PyMainInterpreterConfig_Read() to set program_name if it isn't set yet Cleanup PyCalculatePath: pass main_config to subfunctions to get directly fields from main_config (home, module_search_path_env and program_name) https://bugs.python.org/issue32030
Open Graph Description: _PyMainInterpreterConfig_ReadEnv() now sets program_name from environment variables and pymain_parse_envvars() implements the falls back on argv[0]. Remove _PyMain.program_name: use the program_nam...
X Description: _PyMainInterpreterConfig_ReadEnv() now sets program_name from environment variables and pymain_parse_envvars() implements the falls back on argv[0]. Remove _PyMain.program_name: use the program_nam...
Opengraph URL: https://github.com/python/cpython/pull/4665
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:e58f152f-e545-386b-991e-1dd3626965b2 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | E10A:2F30AE:845010:AEE49A:696B4DDC |
| html-safe-nonce | c80abe724866bac06df3d205538cabbb9eea5857f9fc7fcebcb9c914b3fd8576 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMTBBOjJGMzBBRTo4NDUwMTA6QUVFNDlBOjY5NkI0RERDIiwidmlzaXRvcl9pZCI6IjQxMTYxNTg3ODEyMTQ5MDM3NzIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 69fc0ec44d73ba9c3b153f3b0e3c2e765f10a76ca0d59d5069718a2e9b901b9e |
| hovercard-subject-tag | pull_request:155923090 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/python/cpython/pull/4665/files |
| twitter:image | https://avatars.githubusercontent.com/u/194129?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/194129?s=400&v=4 |
| og:image:alt | _PyMainInterpreterConfig_ReadEnv() now sets program_name from environment variables and pymain_parse_envvars() implements the falls back on argv[0]. Remove _PyMain.program_name: use the program_nam... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5f99f7c1d70f01da5b93e5ca90303359738944d8ab470e396496262c66e60b8d |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 82560a55c6b2054555076f46e683151ee28a19bc |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width