summaryrefslogtreecommitdiffstats
path: root/Modules/getpath.c
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@redhat.com>2018-08-01 00:13:04 (GMT)
committerGitHub <noreply@github.com>2018-08-01 00:13:04 (GMT)
commitb75d7e243512afcfb2285e6471262478383e09db (patch)
treea669ce23fbfe84ddbbb5b84ec0112df60ccf5f73 /Modules/getpath.c
parent8ed317f1ca42a43df14282bbc3ccc0b5610432f4 (diff)
downloadcpython-b75d7e243512afcfb2285e6471262478383e09db.zip
cpython-b75d7e243512afcfb2285e6471262478383e09db.tar.gz
cpython-b75d7e243512afcfb2285e6471262478383e09db.tar.bz2
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.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/Modules/getpath.c b/Modules/getpath.c
index 6d966e1..041cb14 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");