Skip to content

Commit b423b0c

Browse files
committed
added build script
1 parent 29a59cb commit b423b0c

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

build.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ def is_static(self, filename):
2424
return not filename.endswith(".html") and not filename.endswith(".css")
2525

2626
if __name__ == "__main__":
27+
# Change working directory to the root of the project
28+
os.chdir(os.path.dirname(os.path.abspath(__file__)))
29+
2730
searchpath="templates"
2831

2932
with open('data/categories.json') as json_file:

tools/build.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/bash
2+
3+
python3 ../build.py

0 commit comments

Comments
 (0)