kenken999's picture
test
63f6011
raw
history blame
269 Bytes
import subprocess
class PlantUML:
def processes_file(self, filename, code):
with open(filename, "w") as f:
f.write("@startuml\n")
f.write(code)
f.write("@enduml\n")
subprocess.run(["plantuml", "-tpng", filename])