Skip to content
Snippets Groups Projects
Commit 647fb9b9 authored by Yoann Guilhem's avatar Yoann Guilhem
Browse files

Add a trick to check if user has specified both matlab version and path.

Unfortunately, we have no other work-around right now.

Signed-off-by: default avatarYoann Guilhem <yoann.guilhem@esrf.fr>
parent ff0a296e
No related branches found
No related tags found
No related merge requests found
......@@ -205,9 +205,15 @@ if __name__ == '__main__':
confexamplefile = utils_git.getFilePathInRepo("zUtil_Conf", "conf.example.xml")
upd.safelyInstallNewFile(confexamplefile, "conf.xml")
if dct_sup.matlab_dir is not "":
empty_mdir = dct_sup.matlab_dir is ""
empty_mver = dct_sup.matlab_ver is ""
if (empty_mdir != empty_ver):
DCTOutput.printError("If you want to use a specific matlab version, you have to set both matlab version and path!")
sys.exit(1)
if not empty_mdir:
upd.updateXMLConfFile("matlab/path", dct_sup.matlab_dir)
if dct_sup.matlab_ver is not "":
if not empty_mver:
upd.updateXMLConfFile("matlab/version", dct_sup.matlab_ver)
conf_xml_path = utils_git.getFilePathInRepo("conf.xml")
......
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