ソースを参照

Small fix in image generator script.

slow_tiger 1 年間 前
コミット
0dabdd2084
1 ファイル変更2 行追加3 行削除
  1. 2 3
      build_image_cache.py

+ 2 - 3
build_image_cache.py

@@ -141,8 +141,7 @@ def build_all_images(repo: str):
     repo = Path(repo).expanduser()
 
     pattern_matching = ["*.png", "*.jpg"]
-    filepaths = get_files_by_extension(repo, pattern_matching, True)
-
+    filepaths = get_files_by_extension(repo, pattern_matching, relative_path=True)
     images = [
         (str(Path(filepath).parent).split("/")[0], filepath) for filepath in filepaths
     ]
@@ -167,7 +166,7 @@ def build_images(repo: str, oldrev: str, newrev: str):
     repo = Path(repo).expanduser()
 
     pattern_matching = [".png", ".jpg"]
-    filepaths = get_files_by_extension(repo, pattern_matching, True)
+    filepaths = get_files_by_extension(repo, pattern_matching, relative_path=True)
 
     images = [
         (str(Path(filepath).parent).split("/")[0], filepath) for filepath in filepaths