From bda555fd1c55fcf46aea4288cd523321bb12b84c Mon Sep 17 00:00:00 2001 From: Martin Diehl Date: Wed, 3 Jun 2020 16:47:03 +0200 Subject: [PATCH] we are looking for a path, not for a file --- python/damask/solver/_marc.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/damask/solver/_marc.py b/python/damask/solver/_marc.py index 0484ba7e6..dfe45a46d 100644 --- a/python/damask/solver/_marc.py +++ b/python/damask/solver/_marc.py @@ -27,7 +27,7 @@ class Marc: path_MSC = Environment().options['MSC_ROOT'] path_lib = Path('{}/mentat{}/shlib/linux64'.format(path_MSC,self.version)) - return path_lib if path_lib.is_file() else None + return path_lib if path_lib.is_dir() else None @property @@ -36,7 +36,7 @@ class Marc: path_MSC = Environment().options['MSC_ROOT'] path_tools = Path('{}/marc{}/tools'.format(path_MSC,self.version)) - return path_tools if path_tools.is_file() else None + return path_tools if path_tools.is_dir() else None #--------------------------