Skip to content

Commit b6c919b

Browse files
authored
gh-127146: Fix test_sysconfigdata_json for Emscripten (#128556)
1 parent f826bec commit b6c919b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Lib/sysconfig/__init__.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -485,10 +485,10 @@ def _init_config_vars():
485485
_init_posix(_CONFIG_VARS)
486486
# If we are cross-compiling, load the prefixes from the Makefile instead.
487487
if '_PYTHON_PROJECT_BASE' in os.environ:
488-
prefix = _CONFIG_VARS['prefix']
489-
exec_prefix = _CONFIG_VARS['exec_prefix']
490-
base_prefix = _CONFIG_VARS['prefix']
491-
base_exec_prefix = _CONFIG_VARS['exec_prefix']
488+
prefix = _CONFIG_VARS['host_prefix']
489+
exec_prefix = _CONFIG_VARS['host_exec_prefix']
490+
base_prefix = _CONFIG_VARS['host_prefix']
491+
base_exec_prefix = _CONFIG_VARS['host_exec_prefix']
492492
abiflags = _CONFIG_VARS['ABIFLAGS']
493493

494494
# Normalized versions of prefix and exec_prefix are handy to have;

0 commit comments

Comments
 (0)