mirror of
https://github.com/csd4ni3l/browser.git
synced 2026-01-01 04:03:43 +01:00
Add css caching, adapt to LineLayout and Textlayout, add link support, add a resolve_url function, cache colors and space widths for fonts, fix bug crashing if font doesnt exist
This commit is contained in:
7
run.py
7
run.py
@@ -20,8 +20,11 @@ pyglet.font.add_directory('./assets/fonts')
|
||||
if not os.path.exists(log_dir):
|
||||
os.makedirs(log_dir)
|
||||
|
||||
if not os.path.exists("http_cache"):
|
||||
os.makedirs("http_cache")
|
||||
if not os.path.exists("html_cache"):
|
||||
os.makedirs("html_cache")
|
||||
|
||||
if not os.path.exists("css_cache"):
|
||||
os.makedirs("css_cache")
|
||||
|
||||
while len(os.listdir(log_dir)) >= 5:
|
||||
files = [(file, os.path.getctime(os.path.join(log_dir, file))) for file in os.listdir(log_dir)]
|
||||
|
||||
Reference in New Issue
Block a user