2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2025-01-31 15:32:35 +00:00
This commit is contained in:
Martin Green 2022-06-19 01:56:28 +01:00
parent b75a91ed70
commit 3d35cf713f

View File

@ -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)