bpo-32030: Fix config_get_program_name() on macOS (#4669)

This commit is contained in:
Victor Stinner 2017-12-01 21:19:48 +01:00 committed by GitHub
parent 0ea395ae96
commit e23c06e2b0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -894,7 +894,7 @@ config_get_program_name(_PyMainInterpreterConfig *config)
return SET_DECODE_ERROR("PYTHONEXECUTABLE environment "
"variable", len);
}
pymain->config.program_name = buffer;
config->program_name = program_name;
}
#ifdef WITH_NEXT_FRAMEWORK
else {
@ -909,7 +909,7 @@ config_get_program_name(_PyMainInterpreterConfig *config)
return SET_DECODE_ERROR("__PYVENV_LAUNCHER__ environment "
"variable", len);
}
pymain->config.program_name = program_name;
config->program_name = program_name;
}
}
#endif /* WITH_NEXT_FRAMEWORK */