2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2026-04-01 11:11:37 +01:00

regenerating .pos file more carefully

This commit is contained in:
2023-11-11 14:36:03 +02:00
parent 7fb0f0734d
commit 699c19245a
3 changed files with 32 additions and 35 deletions

View File

@@ -264,8 +264,7 @@ def writetrogglefile(filepath, filecontent):
filename = filepath.name
git = settings.GIT
# as the wsgi process www-data, we have group write-access but are not owner, so cannot chmod.
# do not trap exceptions, pass them up to the view that called this function
# do not trap exceptions, pass them up to the view that called this function
print(f"WRITING{cwd}---{filename} ")
with open(filepath, "w") as f:
f.write(filecontent)