corrected python error

This commit is contained in:
Franz Roters 2021-11-25 17:36:41 +01:00
parent f435062a1d
commit 9132ce96f1
1 changed files with 3 additions and 3 deletions

View File

@ -20,14 +20,14 @@ class Marc:
Marc version Marc version
""" """
self.marc_version = Path(marc_version) self.marc_version = marc_version
self.marc_root = Path(marc_root) self.marc_root = Path(marc_root)
self.damask_root = Path(damask_root) self.damask_root = Path(damask_root)
@property @property
def library_path(self): def library_path(self):
path_lib = self.marc_root/self.marc_version/shlib/linux64 path_lib = self.marc_root/f'mentat{self.marc_version}/shlib/linux64'
if not path_lib.is_dir(): if not path_lib.is_dir():
raise FileNotFoundError(f'library path "{path_lib}" not found') raise FileNotFoundError(f'library path "{path_lib}" not found')
@ -37,7 +37,7 @@ class Marc:
@property @property
def tools_path(self): def tools_path(self):
path_tools = self.marc_root/self.marc_version/tools path_tools = self.marc_root/f'marc{self.marc_version}/tools'
if not path_tools.is_dir(): if not path_tools.is_dir():
raise FileNotFoundError(f'tools path "{path_tools}" not found') raise FileNotFoundError(f'tools path "{path_tools}" not found')