check for valid marc version

This commit is contained in:
Martin Diehl 2014-06-17 07:29:05 +00:00
parent 51b92f3ef9
commit eac0217b78
1 changed files with 4 additions and 0 deletions

View File

@ -87,6 +87,10 @@ class Marc(Solver):
if len(release) == 0: release = self.version(rootRelation)
if release not in self.releases:
raise Exception("Unknown MSC.Marc Version %s"%release)
damaskEnv = damask.environment.Environment(rootRelation)
user = os.path.join(damaskEnv.relPath('code/'),'DAMASK_marc') # might be updated if special version is found (usually symlink)