diff options
author | Martin Green <martin.speleo@gmail.com> | 2022-06-19 01:03:45 +0100 |
---|---|---|
committer | Martin Green <martin.speleo@gmail.com> | 2022-06-19 01:03:45 +0100 |
commit | 5ac6bfd49a3faa0ab7126a6911e1edab4e79cf8e (patch) | |
tree | 258d38edb8118898a46fd698a09d4db3f0d1c210 | |
parent | 5666f1e9a7b78363cff71cf915f52775f25c8695 (diff) | |
download | troggle-5ac6bfd49a3faa0ab7126a6911e1edab4e79cf8e.tar.gz troggle-5ac6bfd49a3faa0ab7126a6911e1edab4e79cf8e.tar.bz2 troggle-5ac6bfd49a3faa0ab7126a6911e1edab4e79cf8e.zip |
test
-rw-r--r-- | core/views/expo.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/views/expo.py b/core/views/expo.py index 0719791..3d7a318 100644 --- a/core/views/expo.py +++ b/core/views/expo.py @@ -331,7 +331,7 @@ def editexpopage(request, path): # GIT see also core/models/cave.py writetrogglefile() # GIT see also core/views/uploads.py dwgupload() try: - with open(filepath, "w") as f: + with open(filepath.encode(sysdefaultencoding), "w") as f: print(f'WRITING{cwd}---{filename} ') # as the wsgi process www-data, we have group write-access but are not owner, so cannot chmod. # os.chmod(filepath, 0o664) # set file permissions to rw-rw-r-- |