Closed jpfleischer closed 1 year ago
if engine == "dot": prefix, ending = filename.split(".") dot_filename = prefix + ".dot" writefile(dot_filename, str(dot.source)) os.system(f"dot -T{ending} {dot_filename} -o {filename}")
this fails when filename is something like ~/.cloudmesh/workflow/workflow/workflow.svg
~/.cloudmesh/workflow/workflow/workflow.svg
we easily fix by using
basefilename = os.path.basename(filename) prefix, ending = basefilename.split(".")
fix will be pushed soon
fixed https://github.com/cloudmesh/cloudmesh-cc/commit/9ad6d45b51d2e0a7d68734a4982478c3f0e29d44
this fails when filename is something like
~/.cloudmesh/workflow/workflow/workflow.svg