Skip to content

Commit 951b455

Browse files
committed
Fix workflow.view()
1 parent 2bed7d2 commit 951b455

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ansys/dpf/core/workflow.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -934,10 +934,10 @@ def view(
934934

935935
if save_as:
936936
image_path = Path(save_as)
937-
dot_path = image_path.parent / image_path.stem / ".dot"
937+
dot_path = image_path.parent / f"{image_path.stem}.dot"
938938
else:
939939
image_path = Path.cwd() / f"{name}.png"
940-
dot_path = image_path.parent / image_path.stem / ".dot"
940+
dot_path = image_path.parent / f"{image_path.stem}.dot"
941941

942942
# Create graphviz file of workflow
943943
self.to_graphviz(dot_path)

0 commit comments

Comments
 (0)