Variables | |
string | dot_input = b"".join(dot_lines) |
dot_line = next(in_file) | |
list | dot_lines = [] |
int | file_num = 1 |
in_filename = sys.argv[1] | |
out_dir = in_filename.replace(".in.md", "") | |
out_filename = in_filename.replace(".in.md", ".md") | |
svg = subprocess.check_output(['dot', '-Tsvg', '-o', svg_filename], input=dot_input) | |
string | svg_filename = out_dir + "/" + str(file_num) + ".svg" |
render.svg = subprocess.check_output(['dot', '-Tsvg', '-o', svg_filename], input=dot_input) |