bugfix: wrong path

This commit is contained in:
Martin Diehl 2020-09-15 17:13:13 +02:00
parent dbb6c8f867
commit b7e85b6873
1 changed files with 2 additions and 2 deletions

View File

@ -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)