Merge pull request #2539 from deantvv/detect_environment

Add os in detect requires environment script
This commit is contained in:
Noah
2021-04-04 11:59:24 -05:00
committed by GitHub

View File

@@ -44,7 +44,7 @@ def interpreter_requires_environment():
# Try running an interpreter with -E to see if it works or not.
try:
subprocess.check_call([sys.executable, '-E',
'-c', 'import sys; sys.exit(0)'])
'-c', 'import os, sys; sys.exit(0)'])
except subprocess.CalledProcessError:
__cached_interp_requires_environment = True
else: