Skip to content

Commit

Permalink
Support non-default MATLAB installations via MATLAB_HOME envvar
Browse files Browse the repository at this point in the history
  • Loading branch information
zebrapurring committed Aug 3, 2023
1 parent 6fbf1c7 commit 4f6a256
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ class _MatlabFinder(build_py):
}

DEFAULT_INSTALLS = {
'Darwin': f"/Applications/MATLAB_{MATLAB_REL}.app",
'Linux': f"/usr/local/MATLAB/{MATLAB_REL}"
'Darwin': f"{os.getenv('MATLAB_HOME', '/Applications')}/MATLAB_{MATLAB_REL}.app",
'Linux': f"{os.getenv('MATLAB_HOME', '/usr/local')}/MATLAB/{MATLAB_REL}"
}

arch = ''
Expand Down

0 comments on commit 4f6a256

Please sign in to comment.