do not overwrite existing files

This commit is contained in:
NichtJens
2025-11-03 12:44:33 +01:00
committed by Auf keinen Fall Jens
parent ce2c5ea601
commit 08960020cf
+1 -1
View File
@@ -383,7 +383,7 @@ def write_code_to_file(name, code, beamline):
os.makedirs(os.path.dirname(fn), exist_ok=True)
with open(fn, "w") as f:
with open(fn, "x") as f:
f.write(code)
return fn