cloudmesh / cloudmesh-cc

Cloudmesh compute coordinator the execute compute intensife workflows on remote resources
https://cloudmesh.github.io/cloudmesh-cc/
Other
2 stars 0 forks source link

workflow.py graph save does not handle paths with dots in them correctly #44

Closed jpfleischer closed 1 year ago

jpfleischer commented 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

jpfleischer commented 1 year ago

we easily fix by using

      basefilename = os.path.basename(filename)
      prefix, ending = basefilename.split(".")

fix will be pushed soon

jpfleischer commented 1 year ago

fixed https://github.com/cloudmesh/cloudmesh-cc/commit/9ad6d45b51d2e0a7d68734a4982478c3f0e29d44