Author: Brian Kearns <[email protected]>
Branch:
Changeset: r62289:889d20441589
Date: 2013-03-11 06:06 -0400
http://bitbucket.org/pypy/pypy/changeset/889d20441589/
Log: another attempt at dotviewer path search
diff --git a/dotviewer/graphclient.py b/dotviewer/graphclient.py
--- a/dotviewer/graphclient.py
+++ b/dotviewer/graphclient.py
@@ -131,8 +131,8 @@
# if 'python' is actually PyPy, e.g. in a virtualenv, then
# try hard to find a real CPython
try:
- python = subprocess.check_output(['env', '-i', 'which', 'python'])
- python = python.strip()
+ python = subprocess.check_output(
+ 'env -i $SHELL -l -c "which python"', shell=True).strip()
except subprocess.CalledProcessError:
# did not work, fall back to 'python'
python = 'python'
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit