Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Franck Pommereau
/
snakes
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
Franck Pommereau
2019-09-13 10:11:01 +0200
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
0742496eacb91efb111761b22afb5a94da1457e8
0742496e
1 parent
d79ddb00
fixed GraphViz i/o in snakes.plugins.gv
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
snakes/plugins/gv.py
snakes/plugins/gv.py
View file @
0742496
...
...
@@ -135,13 +135,15 @@ class Graph (Cluster) :
if
debug
:
dot
=
subprocess
.
Popen
([
engine
,
"-T"
+
filename
.
rsplit
(
"."
,
1
)[
-
1
],
"-o"
+
filename
,
outfile
.
name
],
stdin
=
subprocess
.
PIPE
)
stdin
=
subprocess
.
PIPE
,
universal_newlines
=
True
)
else
:
dot
=
subprocess
.
Popen
([
engine
,
"-T"
+
filename
.
rsplit
(
"."
,
1
)[
-
1
],
"-o"
+
filename
,
outfile
.
name
],
stdin
=
subprocess
.
PIPE
,
stdout
=
subprocess
.
PIPE
,
stderr
=
subprocess
.
STDOUT
)
stderr
=
subprocess
.
STDOUT
,
universal_newlines
=
True
)
stdout
,
stderr
=
dot
.
communicate
()
if
not
debug
:
os
.
unlink
(
outfile
.
name
)
...
...
Please
register
or
login
to post a comment