Skip to content

Commit

Permalink
Allow writing empty files in update_config_file
Browse files Browse the repository at this point in the history
  • Loading branch information
olofk committed Dec 6, 2024
1 parent 21ef0a3 commit 4c0bfca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion edalize/tools/edatool.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def update_config_file(self, file_name, contents):
if os.path.exists(f):
old_file = open(f, "r").read()
else:
old_file = ""
old_file = None
if old_file != contents:
with open(f, "w") as _f:
_f.write(contents)
Expand Down

0 comments on commit 4c0bfca

Please sign in to comment.