1
Fork 0

Make swash output read-only

This commit is contained in:
Edgar P. Burkhart 2022-04-07 14:03:44 +02:00
parent 358b57f23d
commit 8ad877af9b
Signed by: edpibu
GPG key ID: 9833D3C5A25BD227

View file

@ -66,4 +66,8 @@ with tempfile.TemporaryDirectory(prefix="swash_", dir=".") as tmp_raw:
log.info(f"Moving swash output to '{out}'") log.info(f"Moving swash output to '{out}'")
shutil.move(tmpdir, out) shutil.move(tmpdir, out)
for f in out.rglob("*"):
if f.is_file():
f.chmod(0o444)
log.info(f"Swash model finished successfully") log.info(f"Swash model finished successfully")