WF_WebBasedFileBrowser
WF_WebBasedFileBrowser copied to clipboard
windwos怎么配置路径
windwos怎么配置路径,报错 ErrorOSError(22, '文件名、目录名或卷标语法不正确。')
修改app/views.py 70到75行 用python的os.path 进行转换
@needUserCookies
def main(req):
global rootpath
try:
with open("./app/rootpath.conf") as root:
rootpath=root.read()
except Exception:
pass
Folder = Utils.Folder(rootpath)
dataJson = Folder.getFolderJson()
language=req.COOKIES.get('language')
if language=="en":
return render(req, "index_en-US.html", {"dataJson": dataJson})
if language=="cn":
return render(req, "index_zh-CN.html", {"dataJson": dataJson})
修改app/views.py 70到75行 用python的os.path 进行转换
@needUserCookies def main(req): global rootpath try: with open("./app/rootpath.conf") as root: rootpath=root.read() except Exception: pass Folder = Utils.Folder(rootpath) dataJson = Folder.getFolderJson() language=req.COOKIES.get('language') if language=="en": return render(req, "index_en-US.html", {"dataJson": dataJson}) if language=="cn": return render(req, "index_zh-CN.html", {"dataJson": dataJson})
可以了,感谢
那就麻烦提个 pull Request 吧