From b7e85b6873112dd9d13135a3af4ff6b68175d15d Mon Sep 17 00:00:00 2001 From: Martin Diehl Date: Tue, 15 Sep 2020 17:13:13 +0200 Subject: [PATCH] bugfix: wrong path --- installation/mods_MarcMentat/apply_DAMASK_modifications.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/installation/mods_MarcMentat/apply_DAMASK_modifications.py b/installation/mods_MarcMentat/apply_DAMASK_modifications.py index 909dfa35a..38a6078b3 100755 --- a/installation/mods_MarcMentat/apply_DAMASK_modifications.py +++ b/installation/mods_MarcMentat/apply_DAMASK_modifications.py @@ -23,8 +23,8 @@ parser.add_argument('--editor', dest='editor', metavar='string', default='vi', def copy_and_replace(in_file,dst): with open(in_file) as f: content = f.read() - content = content.replace('%INSTALLDIR%',str(damask_root/'bin')) - content = content.replace('%VERSION%',str(marc_version).replace('.0','')) + content = content.replace('%INSTALLDIR%',msc_root) + content = content.replace('%VERSION%',str(marc_version)) content = content.replace('%EDITOR%', parser.parse_args().editor) with open(dst/Path(in_file).name,'w') as f: f.write(content)