we are looking for a path, not for a file
This commit is contained in:
parent
bb5485927e
commit
bda555fd1c
|
@ -27,7 +27,7 @@ class Marc:
|
||||||
path_MSC = Environment().options['MSC_ROOT']
|
path_MSC = Environment().options['MSC_ROOT']
|
||||||
path_lib = Path('{}/mentat{}/shlib/linux64'.format(path_MSC,self.version))
|
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
|
@property
|
||||||
|
@ -36,7 +36,7 @@ class Marc:
|
||||||
path_MSC = Environment().options['MSC_ROOT']
|
path_MSC = Environment().options['MSC_ROOT']
|
||||||
path_tools = Path('{}/marc{}/tools'.format(path_MSC,self.version))
|
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
|
||||||
|
|
||||||
|
|
||||||
#--------------------------
|
#--------------------------
|
||||||
|
|
Loading…
Reference in New Issue