Skip to content
Snippets Groups Projects
Commit bdb94dd0 authored by Nicola Vigano's avatar Nicola Vigano
Browse files

Python/launch: fixed matlab launching

parent 7fc81e8f
No related branches found
No related tags found
No related merge requests found
......@@ -79,7 +79,7 @@ class DCTLauncher(object):
env_var = os.environ["LD_LIBRARY_PATH"]
os.environ["LD_LIBRARY_PATH"] = ":".join([env_var, lib])
cmd = [self.conf.getMatlabCommand()]
cmd = [os.path.join(self.conf.getMatlabPath(), "bin", "matlab")]
for arg in self.args:
cmd.append(arg)
cmd.append("-r")
......
......@@ -189,15 +189,15 @@ function initialise_gt(ignore_id19)
end
% Check which version of matlab compiled the oar executables
if isfield(xmlConf, 'matlab_command')
matlabCommand = xmlConf.('matlab_command');
if isfield(xmlConf, 'matlab') && isfield(xmlConf.matlab, 'version')
matlabVersion = xmlConf.matlab.version;
currentMatlabRelease = version('-release');
if (~strcmpi(['matlab' currentMatlabRelease], matlabCommand))
if (~strcmpi(currentMatlabRelease, matlabVersion))
warning('MATLAB_COMPILED:version_mismatch', ...
['You are now running matlab "%s", but the matlab ' ...
'command specified in conf.xml is "%s".\nThere is no ' ...
'guarantee that OAR jobs will work'], ...
currentMatlabRelease, matlabCommand);
currentMatlabRelease, matlabVersion);
end
else
warning('XML:no_matlab_executable_version', ...
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment