We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 59759ec commit df5ae08Copy full SHA for df5ae08
Lib/sysconfig/__init__.py
@@ -556,8 +556,8 @@ def get_config_vars(*args):
556
# initialized, a virtual environment might have been activated, resulting in
557
# variables like sys.prefix changing their value, so we need to re-init the
558
# config vars (see GH-126789).
559
- with _CONFIG_VARS_LOCK:
560
- if _CONFIG_VARS['base'] != os.path.normpath(sys.prefix):
+ if _CONFIG_VARS['base'] != os.path.normpath(sys.prefix):
+ with _CONFIG_VARS_LOCK:
561
_CONFIG_VARS_INITIALIZED = False
562
_init_config_vars()
563
0 commit comments