Skip to content

Commit e23c06e

Browse files
authored
bpo-32030: Fix config_get_program_name() on macOS (#4669)
1 parent 0ea395a commit e23c06e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Modules/main.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -894,7 +894,7 @@ config_get_program_name(_PyMainInterpreterConfig *config)
894894
return SET_DECODE_ERROR("PYTHONEXECUTABLE environment "
895895
"variable", len);
896896
}
897-
pymain->config.program_name = buffer;
897+
config->program_name = program_name;
898898
}
899899
#ifdef WITH_NEXT_FRAMEWORK
900900
else {
@@ -909,7 +909,7 @@ config_get_program_name(_PyMainInterpreterConfig *config)
909909
return SET_DECODE_ERROR("__PYVENV_LAUNCHER__ environment "
910910
"variable", len);
911911
}
912-
pymain->config.program_name = program_name;
912+
config->program_name = program_name;
913913
}
914914
}
915915
#endif /* WITH_NEXT_FRAMEWORK */

0 commit comments

Comments
 (0)