aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Kearns <bdkearns@gmail.com>2013-03-11 06:06:31 -0400
committerBrian Kearns <bdkearns@gmail.com>2013-03-11 06:06:31 -0400
commit89866bd6049ac985b0ca2cd401b54c6f9a31627e (patch)
treecfae08f2f796d2cc9addb081d837bcb7f7e29593 /dotviewer
parenttest and fix for id(complex) when imag < 0 (diff)
downloadpypy-89866bd6049ac985b0ca2cd401b54c6f9a31627e.tar.gz
pypy-89866bd6049ac985b0ca2cd401b54c6f9a31627e.tar.bz2
pypy-89866bd6049ac985b0ca2cd401b54c6f9a31627e.zip
another attempt at dotviewer path search
Diffstat (limited to 'dotviewer')
-rw-r--r--dotviewer/graphclient.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/dotviewer/graphclient.py b/dotviewer/graphclient.py
index 4d5e443b2f..43115e8b96 100644
--- a/dotviewer/graphclient.py
+++ b/dotviewer/graphclient.py
@@ -131,8 +131,8 @@ def spawn_local_handler():
# 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'