summaryrefslogtreecommitdiffstats
path: root/core/views/expo.py
diff options
context:
space:
mode:
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)