bugfix (wrong variable name)

This commit is contained in:
Martin Diehl 2020-06-03 13:53:00 +02:00
parent 33a8aa4db7
commit 9b04a45bbd
1 changed files with 1 additions and 2 deletions

View File

@ -1,4 +1,3 @@
import os
import subprocess import subprocess
import shlex import shlex
import string import string
@ -56,7 +55,7 @@ class Marc:
env = Environment() env = Environment()
user = env.root_dir/Path('src')/Path('DAMASK_marc{}'.format(version)).with_suffix('.f90' if compile else '.marc') user = env.root_dir/Path('src/DAMASK_marc{}'.format(self.version)).with_suffix('.f90' if compile else '.marc')
if not user.is_file(): if not user.is_file():
raise FileNotFoundError("DAMASK4Marc ({}) '{}' not found".format(('source' if compile else 'binary'),user)) raise FileNotFoundError("DAMASK4Marc ({}) '{}' not found".format(('source' if compile else 'binary'),user))