bugfix: wrong path
This commit is contained in:
parent
dbb6c8f867
commit
b7e85b6873
|
@ -23,8 +23,8 @@ parser.add_argument('--editor', dest='editor', metavar='string', default='vi',
|
||||||
def copy_and_replace(in_file,dst):
|
def copy_and_replace(in_file,dst):
|
||||||
with open(in_file) as f:
|
with open(in_file) as f:
|
||||||
content = f.read()
|
content = f.read()
|
||||||
content = content.replace('%INSTALLDIR%',str(damask_root/'bin'))
|
content = content.replace('%INSTALLDIR%',msc_root)
|
||||||
content = content.replace('%VERSION%',str(marc_version).replace('.0',''))
|
content = content.replace('%VERSION%',str(marc_version))
|
||||||
content = content.replace('%EDITOR%', parser.parse_args().editor)
|
content = content.replace('%EDITOR%', parser.parse_args().editor)
|
||||||
with open(dst/Path(in_file).name,'w') as f:
|
with open(dst/Path(in_file).name,'w') as f:
|
||||||
f.write(content)
|
f.write(content)
|
||||||
|
|
Loading…
Reference in New Issue