Skip to content

Commit e26de91

Browse files
fix octave commands
Co-authored-by: Bart Schilperoort <b.schilperoort@esciencecenter.nl>
1 parent 6b6e2bd commit e26de91

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

PyStemmusScope/stemmus_scope.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,8 +176,8 @@ def run(self) -> str:
176176
path_to_config = f"'{self.cfg_file}'"
177177
# fix for windows
178178
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"]
179+
eval_code = f'STEMMUS_SCOPE_exe({path_to_config});exit;'
180+
args = ["octave", "--eval", eval_code, "--no-gui", "--silent"]
181181
result = _run_sub_process(args, self.model_src)
182182
return result
183183

0 commit comments

Comments
 (0)