Skip to content

Commit 921e066

Browse files
committed
Add assets PathFinder
1 parent 538a5ec commit 921e066

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

src/mads/lib/path.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,3 +84,17 @@ def __truediv__(self, other: str) -> Path:
8484
"""Find files as if the finder was a Path: finder / 'file.txt'"""
8585

8686
return self.find(other)
87+
88+
89+
assets = PathFinder(
90+
[
91+
"./assets/",
92+
"./data/",
93+
"./",
94+
"/voc/data/",
95+
"/voc/course/public/data/",
96+
"/voc/course/public/assets/",
97+
"/home/jovyan/assets/",
98+
"/home/jovyan/data/",
99+
]
100+
)

0 commit comments

Comments
 (0)