diff options
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: |