Skip to content

Commit 6e32c89

Browse files
committed
replace eval_code with eval_command
1 parent f4946e9 commit 6e32c89

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

PyStemmusScope/stemmus_scope.py

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

0 commit comments

Comments
 (0)