mirror of
https://github.com/RustPython/RustPython.git
synced 2026-10-28 18:59:04 +08:00
Add os in detect requires environment script
This commit is contained in:
1 parent
e9aa81b003
commit
7155decd1f
1 file changed
+1
-1
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user