Is it possible to use Install[]
to start a MathLink program with a custom PATH
environment variable?
I am trying to use mEngine to connect Mathematica to MATLAB on Windows. It only works if mEngine.exe
is launched when the PATH
environment variable includes the path to the MATLAB libraries. Is it possible to modify the PATH for launching this program only, without needing to modify the system path? Or is there another way to launch mEngine.exe
?
Install
the MathLink executable and not a script that starts it ... I wonder if I should delete this question now. – WheeledEnvironment[name]
which allows you to read the kernel's shell variablename
. But there is no Mathematica function for setting environment variables (such asSetEnvironment[name,value]
). Is this what you are after? – Kongosetx
to set a global env PATH var. So, first run that batch, then install your program, and after that run another batch file that removes the added directories from %path% – Mariomariologysetx
. It doesn't seem to be available on all versions of Windows (not on this XP at least). Butset
works well. – Wheeled