Skip to content

Commit 7b11c9c

Browse files
authored
Update setup_matlab.py
1 parent b920582 commit 7b11c9c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

scripts/setup_matlab.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,9 @@ def download_and_install_matlab_runtime():
130130
if system == 'linux' or system == 'darwin':
131131
subprocess.check_call(['chmod', 'u+x', installer_file], cwd=installer_path)
132132

133-
command = [op.join('.', installer_file), '-agreeToLicense', 'yes']
133+
installer_file = op.join('.', installer_file)
134+
135+
command = [installer_file, '-agreeToLicense', 'yes']
134136

135137
success = False
136138
try:
@@ -170,7 +172,7 @@ def setup_matlab_environment(download):
170172
if not runtime_installed:
171173
raise SystemError(f'Failed to install Matlab Runtime. Please try manually.')
172174

173-
runtime_found = add_matlab_to_path()
175+
runtime_found = add_matlab_to_path('R2024b')
174176

175177
if runtime_found and try_import(module_name):
176178
return True

0 commit comments

Comments
 (0)