瀏覽代碼

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()
 
 IMAGE_CACHE_PATH = f"{cwd}/static/images/cache"
+Path(IMAGE_CACHE_PATH).mkdir(parents=True, exist_ok=True)
 
 SIZES = {
     ".": [