correct path; error correctionin mod script
This commit is contained in:
parent
375f2825ee
commit
c26bd6e82c
|
@ -17,7 +17,7 @@ def copy_and_patch(patch,orig,marc_root,editor):
|
||||||
with open(orig.parent/patch.stem) as f_in:
|
with open(orig.parent/patch.stem) as f_in:
|
||||||
content = f_in.read()
|
content = f_in.read()
|
||||||
with open(orig.parent/patch.stem,'w') as f_out:
|
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(
|
parser = argparse.ArgumentParser(
|
||||||
|
|
Loading…
Reference in New Issue