I managed to solve this problem. In SCons, the environment that it sees is from an instance:
env = Environment(..., ENV = os.environ)
What I did was add the path to matlab mex to os.environ by doing:
os.environ['PATH'] = matlabPath + '/bin:' + os.environ['PATH'];
Where matlabPath is the matlab path, for example:
/Applications/MATLAB_R2009b.app
What is it!
source
share