Closed iandol closed 2 years ago
Good enough. Btw. we do use getenv() in various places already. The unix method is just some remnant from past times. PsychHomeDir() has the same issue of using $Home, btw.
I'll create a pull request for that too, although I didn't run into that (none of the code path calls that)...
This change is due to a MATLAB Compiler error due to the use of
unix('echo $HOME')
whereasgetenv('HOME')
compiles OK (only tested on macOS so far) -- note that both MATLAB and Octave support the use ofgetenv()
. Once compiled and run,getenv('HOME')
correctly retrieves the user's home dir just fine...This is simplified from the previous pull #219 (no need to use
isdeployed
) with a more descriptive title (hope it's OK)...