Skip to content

Commit 72adaf2

Browse files
committed
Fix GPUCache/ folder creation when using in-memory cache (cztomczak#419)
1 parent 0867dbe commit 72adaf2

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

‎src/cefpython.pyx‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -583,6 +583,15 @@ def Initialize(applicationSettings=None, commandLineSwitches=None, **kwargs):
583583
application_settings["single_process"] = False
584584
# ------------------------------------------------------------------------
585585

586+
# ------------------------------------------------------------------------
587+
# Fix GPUCache/ folder creation when using in-memory cache (Issue #419)
588+
# ------------------------------------------------------------------------
589+
if not "cache_path" in application_settings:
590+
application_settings["cache_path"] = ""
591+
if not application_settings["cache_path"]:
592+
g_commandLineSwitches["disable-gpu-shader-disk-cache"] = ""
593+
594+
586595
cdef CefRefPtr[CefApp] cefApp = <CefRefPtr[CefApp]?>new CefPythonApp()
587596

588597
IF UNAME_SYSNAME == "Windows":

0 commit comments

Comments
 (0)