move stderr to /dev/null get_python_path in configure.py:167 to prevent python traceback when run site.getsitepackages
diff --git a/configure.py b/configure.py
index 5eb80c0..a55acb1 100644
--- a/configure.py
+++ b/configure.py
@@ -171,10 +171,11 @@
if environ_cp.get('PYTHONPATH'):
python_paths = environ_cp.get('PYTHONPATH').split(':')
try:
+ stderr = open(os.devnull, 'wb')
library_paths = run_shell([
python_bin_path, '-c',
'import site; print("\\n".join(site.getsitepackages()))'
- ]).split('\n')
+ ], stderr=stderr).split('\n')
except subprocess.CalledProcessError:
library_paths = [
run_shell([