with_suffix strips .1 from 2019.1
This commit is contained in:
parent
190c9a1b0d
commit
2bbd68d964
|
@ -49,7 +49,8 @@ class Marc:
|
||||||
):
|
):
|
||||||
|
|
||||||
|
|
||||||
usersub = damask.environment.root_dir/Path(f'src/DAMASK_marc{self.version}').with_suffix('.f90' if compile else '.marc')
|
usersub = damask.environment.root_dir/Path(f'src/DAMASK_marc{self.version}')
|
||||||
|
usersub = usersub.parent/(usersub.name + ('.f90' if compile else '.marc'))
|
||||||
if not usersub.is_file():
|
if not usersub.is_file():
|
||||||
raise FileNotFoundError("DAMASK4Marc ({}) '{}' not found".format(('source' if compile else 'binary'),usersub))
|
raise FileNotFoundError("DAMASK4Marc ({}) '{}' not found".format(('source' if compile else 'binary'),usersub))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue