Skip to content

Commit 784fdf9

Browse files
committed
refactor octave commands
1 parent 6e32c89 commit 784fdf9

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

PyStemmusScope/stemmus_scope.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -174,10 +174,10 @@ 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-
eval_command = f'STEMMUS_SCOPE_exe({path_to_config});exit;'
178177
# fix for windows
179-
eval_command = eval_command.replace("\\", "/")
180-
args = ["octave", "--eval", eval_command, "--no-gui", "--silent"]
178+
path_to_config = path_to_config.replace("\\", "/")
179+
command_line = f'octave --eval "STEMMUS_SCOPE_exe({path_to_config});exit;"'
180+
args = [command_line, "--no-gui", "--silent"]
181181
result = _run_sub_process(args, self.model_src)
182182
return result
183183

0 commit comments

Comments
 (0)