فهرست منبع

build_image_cache: create cache path if it does not exist

brid 1 سال پیش
والد
کامیت
6c5603b2ad
1فایلهای تغییر یافته به همراه1 افزوده شده و 0 حذف شده
  1. 1 0
      build_image_cache.py

+ 1 - 0
build_image_cache.py

@@ -28,6 +28,7 @@ settings = read_settings(f"{cwd}/settings.toml")
 git_repo = Path(settings.git_repo).expanduser()
 git_repo = Path(settings.git_repo).expanduser()
 
 
 IMAGE_CACHE_PATH = f"{cwd}/static/images/cache"
 IMAGE_CACHE_PATH = f"{cwd}/static/images/cache"
+Path(IMAGE_CACHE_PATH).mkdir(parents=True, exist_ok=True)
 
 
 SIZES = {
 SIZES = {
     ".": [
     ".": [