Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ddc163d

Browse files
authored
bpo-34783: Fix Py_Main() (GH-9526)
Fix a crash with musl libc (on Alpine Linux) when the script filename specified on the command line doesn't exist. pymain_open_filename() now gets the current core configuration from the interpreter state. Modify the code to make it closer to the master branch: * Rename _Py_CommandLineDetails to _PyCmdline * Remove _PyMain.config: replaced with a local variable 'local_config' in pymain_init() * Reorganize pymain_main(): move code using the "local config" into pymain_init() * As soon as possible, switch from the local config to the core configuration attached to the interpreter.
1 parent aeadf59 commit ddc163d

File tree

2 files changed

+86
-79
lines changed

2 files changed

+86
-79
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Fix a crash with musl libc (on Alpine Linux) when the script filename
2+
specified on the command line doesn't exist.

0 commit comments

Comments
 (0)