Skip to content

Commit f4946e9

Browse files
replace double backslash for windows
Co-authored-by: Bart Schilperoort <b.schilperoort@esciencecenter.nl>
1 parent 96fef08 commit f4946e9

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

PyStemmusScope/stemmus_scope.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,8 +174,9 @@ def run(self) -> str:
174174
# use subprocess instead of oct2py,
175175
# see issue STEMMUS_SCOPE_Processing/issues/46
176176
path_to_config = f"'{self.cfg_file}'"
177-
command_line = f'octave --eval "STEMMUS_SCOPE_octave({path_to_config});exit;"'
178-
args = [command_line, "--no-gui", "--silent"]
177+
eval_code = f'STEMMUS_SCOPE_exe({path_to_config});exit;'
178+
eval_code = eval_command.replace("\\", "/")
179+
args = ["octave", "--eval", eval_code, "--no-gui", "--silent"]
179180
result = _run_sub_process(args, self.model_src)
180181
return result
181182

0 commit comments

Comments
 (0)