From 8a2886faf205d53199bca8a7170212d2d3ef5888 Mon Sep 17 00:00:00 2001 From: RemixDev Date: Wed, 12 Aug 2020 16:39:47 +0200 Subject: [PATCH] Added subfolder for chrome cache, will reset local settings on windows --- deemix_gui.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/deemix_gui.py b/deemix_gui.py index 14f5e82..cecd6ce 100644 --- a/deemix_gui.py +++ b/deemix_gui.py @@ -4,6 +4,7 @@ import webview from threading import Thread, Lock import sys import os.path as path +from os import makedirs from time import sleep from server import run_server from http.client import HTTPConnection @@ -84,9 +85,11 @@ if __name__ == '__main__': window.closing += save_position if sys.platform == "win32": from webview.platforms.cef import settings + cacheFolder = path.join(configFolder, 'cefCache') + makedirs(cacheFolder, exist_ok=True) settings.update({ 'persist_session_cookies': True, - 'cache_path': configFolder + 'cache_path': cacheFolder }) webview.start(gui='cef') elif sys.platform == "linux":