diff options
author | 2018-08-01 02:13:04 +0200 | |
---|---|---|
committer | 2018-08-01 02:13:04 +0200 | |
commit | b75d7e243512afcfb2285e6471262478383e09db (patch) | |
tree | a669ce23fbfe84ddbbb5b84ec0112df60ccf5f73 /Modules/getpath.c | |
parent | bpo-34113: Fix a crash when using LLTRACE is on (GH-8517) (diff) | |
download | cpython-b75d7e243512afcfb2285e6471262478383e09db.tar.gz cpython-b75d7e243512afcfb2285e6471262478383e09db.tar.bz2 cpython-b75d7e243512afcfb2285e6471262478383e09db.zip |
bpo-34170: Add _PyCoreConfig._frozen parameter (GH-8591)
Modify frozenmain.c to use _Py_InitializeFromConfig().
Diffstat (limited to 'Modules/getpath.c')
-rw-r--r-- | Modules/getpath.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Modules/getpath.c b/Modules/getpath.c index 6d966e1bced..041cb14b4b9 100644 --- a/Modules/getpath.c +++ b/Modules/getpath.c @@ -372,7 +372,7 @@ calculate_prefix(const _PyCoreConfig *core_config, { calculate->prefix_found = search_for_prefix(core_config, calculate, prefix); if (!calculate->prefix_found) { - if (!Py_FrozenFlag) { + if (!core_config->_frozen) { fprintf(stderr, "Could not find platform independent libraries <prefix>\n"); } @@ -495,7 +495,7 @@ calculate_exec_prefix(const _PyCoreConfig *core_config, calculate, exec_prefix); if (!calculate->exec_prefix_found) { - if (!Py_FrozenFlag) { + if (!core_config->_frozen) { fprintf(stderr, "Could not find platform dependent libraries <exec_prefix>\n"); } @@ -915,7 +915,7 @@ calculate_path_impl(const _PyCoreConfig *core_config, calculate_exec_prefix(core_config, calculate, exec_prefix); if ((!calculate->prefix_found || !calculate->exec_prefix_found) && - !Py_FrozenFlag) + !core_config->_frozen) { fprintf(stderr, "Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]\n"); |