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)