Skip to content

Commit

Permalink
Set executable flag for patch
Browse files Browse the repository at this point in the history
  • Loading branch information
ChillerDragon committed Dec 1, 2022
1 parent 616a102 commit cc43bf9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion patch_gen.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,10 @@ def gen_py_patch(base_map_file, diff_map_file):

patches.append(f"in_map.save('{mapname}.map')")

with open(f"{mapname}_{diffname}_patch.py", 'w') as patch:
patchfile = f"{mapname}_{diffname}_patch.py"
with open(patchfile, 'w') as patch:
patch.write("\n".join(patches) + "\n")
os.chmod(patchfile, 0o744)

if len(sys.argv) != 3:
print("usage: patch_gen.py BASE_MAP DIFF_MAP")
Expand Down

0 comments on commit cc43bf9

Please sign in to comment.