|
|
@@ -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
|