aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAmaury Forgeot d'Arc <amauryfa@gmail.com>2010-06-08 14:32:22 +0000
committerAmaury Forgeot d'Arc <amauryfa@gmail.com>2010-06-08 14:32:22 +0000
commitac05cec18e71e09636c3107b679f9c9aab90a5d3 (patch)
tree9bba2610b3ddc48a39f4cb5078b7116032f4d946
parentOn Windows, correctly retrieve the version of the compiler used to compile th... (diff)
downloadpypy-ac05cec18e71e09636c3107b679f9c9aab90a5d3.tar.gz
pypy-ac05cec18e71e09636c3107b679f9c9aab90a5d3.tar.bz2
pypy-ac05cec18e71e09636c3107b679f9c9aab90a5d3.zip
Don't close_fds on Windows, it does not work anyway.
-rw-r--r--dotviewer/graphparse.py3
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: