Skip to content

Commit 313c708

Browse files
author
zebrapurring
committed
Support non-default MATLAB installations via MATLAB_HOME envvar
1 parent 6fbf1c7 commit 313c708

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ class _MatlabFinder(build_py):
4040
}
4141

4242
DEFAULT_INSTALLS = {
43-
'Darwin': f"/Applications/MATLAB_{MATLAB_REL}.app",
44-
'Linux': f"/usr/local/MATLAB/{MATLAB_REL}"
43+
'Darwin': f"{os.environ('MATLAB_HOME', '/Applications')}/MATLAB_{MATLAB_REL}.app",
44+
'Linux': f"{os.environ('MATLAB_HOME', '/usr/local')}/MATLAB/{MATLAB_REL}"
4545
}
4646

4747
arch = ''

0 commit comments

Comments
 (0)