Skip to content

Commit d62096d

Browse files
committed
Fix path double_quote problems in UNIX systems
1 parent 299e698 commit d62096d

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

src/simod/control_flow/discovery.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -140,12 +140,11 @@ def add_bpmn_diagram_to_model(bpmn_model_path: Path):
140140
"""
141141
global bpmn_layout_jar_path
142142

143-
args = [
144-
"java",
145-
"-jar",
146-
'"' + str(bpmn_layout_jar_path) + '"',
147-
'"' + str(bpmn_model_path) + '"'
148-
]
143+
if is_windows():
144+
args = ["java", "-jar", '"' + str(bpmn_layout_jar_path) + '"', '"' + str(bpmn_model_path) + '"']
145+
else:
146+
args = ["java", "-jar", str(bpmn_layout_jar_path), str(bpmn_model_path)]
147+
149148
print_step(f"Adding BPMN diagram to the model: {args}")
150149
execute_external_command(args)
151150

0 commit comments

Comments
 (0)