diff options
Diffstat (limited to 'Programs/_freeze_importlib.c')
-rw-r--r-- | Programs/_freeze_importlib.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/Programs/_freeze_importlib.c b/Programs/_freeze_importlib.c index 74735f2..2e4ccbb 100644 --- a/Programs/_freeze_importlib.c +++ b/Programs/_freeze_importlib.c @@ -76,17 +76,12 @@ main(int argc, char *argv[]) } text[text_size] = '\0'; - PyStatus status; PyConfig config; - - status = PyConfig_InitIsolatedConfig(&config); - if (PyStatus_Exception(status)) { - PyConfig_Clear(&config); - Py_ExitStatusException(status); - } + PyConfig_InitIsolatedConfig(&config); config.site_import = 0; + PyStatus status; status = PyConfig_SetString(&config, &config.program_name, L"./_freeze_importlib"); if (PyStatus_Exception(status)) { |