Add os in detect requires environment script

This commit is contained in:
Dean Li committed 2021-04-04 22:45:15 +08:00
1 parent e9aa81b003
commit 7155decd1f
1 file changed
+1 -1
+1 -1
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: