correct path; error correctionin mod script

This commit is contained in:
Franz Roters 2021-11-29 14:35:45 +01:00
parent 375f2825ee
commit c26bd6e82c
2 changed files with 1 additions and 1 deletions

View File

@ -17,7 +17,7 @@ def copy_and_patch(patch,orig,marc_root,editor):
with open(orig.parent/patch.stem) as f_in:
content = f_in.read()
with open(orig.parent/patch.stem,'w') as f_out:
f_out.write(content.replace('%INSTALLDIR%',marc_root).replace('%EDITOR%',editor))
f_out.write(content.replace('%INSTALLDIR%',f'{marc_root}').replace('%EDITOR%',editor))
parser = argparse.ArgumentParser(