summaryrefslogtreecommitdiffstats
path: root/core/views/expo.py
diff options
context:
space:
mode:
authorMartin Green <martin.speleo@gmail.com>2022-06-19 01:56:28 +0100
committerMartin Green <martin.speleo@gmail.com>2022-06-19 01:56:28 +0100
commit3d35cf713f9c9be5b29ddd167c489bff9ce12fba (patch)
treef313d4c585e179d5cee4b829aaebc7f19d075e4c /core/views/expo.py
parentb75a91ed708aa3677724f66f72062ee1b51b7ae1 (diff)
downloadtroggle-3d35cf713f9c9be5b29ddd167c489bff9ce12fba.tar.gz
troggle-3d35cf713f9c9be5b29ddd167c489bff9ce12fba.tar.bz2
troggle-3d35cf713f9c9be5b29ddd167c489bff9ce12fba.zip
test
Diffstat (limited to 'core/views/expo.py')
-rw-r--r--core/views/expo.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/views/expo.py b/core/views/expo.py
index bb81680..3406851 100644
--- a/core/views/expo.py
+++ b/core/views/expo.py
@@ -158,7 +158,7 @@ def expowebpage(request, expowebpath, path):
if m:
editable = False
else:
- editable = os.access(Path(expowebpath / path), os.W_OK) # are file permissions writeable?
+ editable = os.access(os.path.normpath(expowebpath / path).encode(sysdefaultencoding)), os.W_OK) # are file permissions writeable?
has_menu = False
menumatch = re.match(r'(.*)<div id="menu">', body, re.DOTALL + re.IGNORECASE)