Skip to content

Commit

Permalink
Debugging snaps
Browse files Browse the repository at this point in the history
  • Loading branch information
jsseidel committed Apr 23, 2019
1 parent b292926 commit 2108ebc
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions bin/flt-plantuml.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
import sys
import hashlib

from subprocess import Popen, PIPE, run
from subprocess import Popen, PIPE
from pandocfilters import toJSONFilter, Para, Image, Str, get_filename4code, get_value, get_extension

def get_md5(s):
Expand Down Expand Up @@ -94,11 +94,6 @@ def plantuml(key, value, format, meta):
with open(src, "w") as f:
f.write(txt)

p = Popen(["whereis", "plantuml"], stderr=PIPE, stdout=PIPE)
(stdout, stderr) = p.communicate()
sys.stderr.write(stdout.decode())
sys.stderr.write(stderr.decode())

p = Popen(["plantuml", "-t" + filetype, src], stderr=PIPE, stdout=PIPE)
(stdout, stderr) = p.communicate()
if stderr.decode() != "":
Expand Down

0 comments on commit 2108ebc

Please sign in to comment.