diff options
author | Amaury Forgeot d'Arc <amauryfa@gmail.com> | 2010-06-08 14:32:22 +0000 |
---|---|---|
committer | Amaury Forgeot d'Arc <amauryfa@gmail.com> | 2010-06-08 14:32:22 +0000 |
commit | ac05cec18e71e09636c3107b679f9c9aab90a5d3 (patch) | |
tree | 9bba2610b3ddc48a39f4cb5078b7116032f4d946 /dotviewer | |
parent | On Windows, correctly retrieve the version of the compiler used to compile th... (diff) | |
download | pypy-ac05cec18e71e09636c3107b679f9c9aab90a5d3.tar.gz pypy-ac05cec18e71e09636c3107b679f9c9aab90a5d3.tar.bz2 pypy-ac05cec18e71e09636c3107b679f9c9aab90a5d3.zip |
Don't close_fds on Windows, it does not work anyway.
Diffstat (limited to 'dotviewer')
-rw-r--r-- | dotviewer/graphparse.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/dotviewer/graphparse.py b/dotviewer/graphparse.py index e0df7e0a7f..d6fa4da86c 100644 --- a/dotviewer/graphparse.py +++ b/dotviewer/graphparse.py @@ -47,7 +47,8 @@ def dot2plain(content, contenttype, use_codespeak=False): else: cmdline = 'neato -Tplain' #print >> sys.stderr, '* running:', cmdline - p = subprocess.Popen(cmdline, shell=True, close_fds=True, + close_fds = sys.platform != 'win32' + p = subprocess.Popen(cmdline, shell=True, close_fds=close_fds, stdin=subprocess.PIPE, stdout=subprocess.PIPE) (child_in, child_out) = (p.stdin, p.stdout) try: |