Changeset 1096:3b923185a50d
- Timestamp:
- 07/16/23 10:58:19 (16 months ago)
- Branch:
- python3
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mlx/gui/cef.py
r1095 r1096 19 19 from io import StringIO 20 20 import lxml.html 21 import shutil 21 22 22 23 #------------------------------------------------------------------------------ … … 221 222 print("Initializing CEF with args:", args) 222 223 224 cacheDir = os.path.join(GLib.get_user_cache_dir(), "mlxcef") 225 226 try: 227 shutil.rmtree(cacheDir) 228 print("gui.cef._initializeCEF1: the cache directory is removed") 229 except Exception as e: 230 print("gui.cef._initializeCEF1: cache directory removal failed:", e) 231 223 232 settings = { 224 233 "debug": True, # cefpython debug messages in console and in log_file … … 232 241 (cefpython.GetModuleDirectory(), "subprocess"), 233 242 "windowless_rendering_enabled": True, 234 "cache_path": os.path.join(GLib.get_user_cache_dir(), 235 "mlxcef") 243 "cache_path": cacheDir 236 244 } 237 245
Note:
See TracChangeset
for help on using the changeset viewer.