diff options
author | Armin Rigo <arigo@tunes.org> | 2009-03-11 19:01:26 +0000 |
---|---|---|
committer | Armin Rigo <arigo@tunes.org> | 2009-03-11 19:01:26 +0000 |
commit | 708de96cd7f4d1381781c3003fae68890c19fb97 (patch) | |
tree | 84bea1da8fe06c3f44fb5a88613984724a05eef7 /dotviewer | |
parent | graphviewer now uses the subprocess module instead of os.popen2. (diff) | |
download | pypy-708de96cd7f4d1381781c3003fae68890c19fb97.tar.gz pypy-708de96cd7f4d1381781c3003fae68890c19fb97.tar.bz2 pypy-708de96cd7f4d1381781c3003fae68890c19fb97.zip |
Fix on Linux. Maybe we converge and this works on Windows too? :-)
Diffstat (limited to 'dotviewer')
-rw-r--r-- | dotviewer/graphclient.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/dotviewer/graphclient.py b/dotviewer/graphclient.py index a2a8336dcf..82d2e967f4 100644 --- a/dotviewer/graphclient.py +++ b/dotviewer/graphclient.py @@ -130,8 +130,8 @@ def spawn_local_handler(): python = 'python' else: python = sys.executable - cmdline = '"%s" -u "%s" --stdio' % (python, GRAPHSERVER) - p = subprocess.Popen(cmdline, + args = [python, '-u', GRAPHSERVER, '--stdio'] + p = subprocess.Popen(args, stdout=subprocess.PIPE, stdin=subprocess.PIPE) child_in, child_out = p.stdin, p.stdout io = msgstruct.FileIO(child_out, child_in) |