From 3d35cf713f9c9be5b29ddd167c489bff9ce12fba Mon Sep 17 00:00:00 2001
From: Martin Green <martin.speleo@gmail.com>
Date: Sun, 19 Jun 2022 01:56:28 +0100
Subject: [PATCH] test

---
 core/views/expo.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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)