From 771112c94393de7a9232142d64477331b2b1d8a2 Mon Sep 17 00:00:00 2001 From: Flo Greistorfer Date: Tue, 9 Jul 2024 09:28:10 +0200 Subject: [PATCH] log message --- builder.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/builder.py b/builder.py index 985e4a5..975f0c9 100755 --- a/builder.py +++ b/builder.py @@ -31,7 +31,7 @@ FAVICON_PATH = ".static/favicon.ico" GLOBAL_CSS_PATH = ".static/global.css" DEFAULT_THEME_PATH = os.path.join(os.path.abspath(os.path.dirname(__file__)), "themes", "default.css") DEFAULT_AUTHOR = "Author" -VERSION = "1.9.4" +VERSION = "1.9.5" RAW_EXTENSIONS = [".3fr", ".ari", ".arw", ".bay", ".braw", ".crw", ".cr2", ".cr3", ".cap", ".data", ".dcs", ".dcr", ".dng", ".drf", ".eip", ".erf", ".fff", ".gpr", ".iiq", ".k25", ".kdc", ".mdc", ".mef", ".mos", ".mrw", ".nef", ".nrw", ".obm", ".orf", ".pef", ".ptx", ".pxn", ".r3d", ".raf", ".raw", ".rwl", ".rw2", ".rwz", ".sr2", ".srf", ".srw", ".tif", ".tiff", ".x3f"] IMG_EXTENSIONS = [".jpg", ".jpeg"] EXCLUDES = [".lock", "index.html", "manifest.json", ".sizelist.json", ".thumbnails", ".static"] @@ -121,10 +121,9 @@ def init_globals(_args: Args) -> Args: def copy_static_files(_args: Args) -> None: if os.path.exists(os.path.join(_args.root_directory, ".static")): + print("Removing existing .static folder...") shutil.rmtree(os.path.join(_args.root_directory, ".static")) shutil.copytree(STATIC_FILES_DIR, os.path.join(_args.root_directory, ".static"), dirs_exist_ok=True) - if os.path.exists(os.path.join(_args.root_directory, ".static", "theme.css")): - os.remove(os.path.join(_args.root_directory, ".static", "theme.css")) shutil.copyfile(_args.theme_path, os.path.join(_args.root_directory, ".static", "theme.css"))