string should be a Path object
This commit is contained in:
parent
18849c3a69
commit
5da1aa49bc
|
@ -38,7 +38,7 @@ class Marc:
|
||||||
def tools_path(self):
|
def tools_path(self):
|
||||||
|
|
||||||
path_MSC = Environment().options['MSC_ROOT']
|
path_MSC = Environment().options['MSC_ROOT']
|
||||||
path_tools = '{}/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_file() else None
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue