diff --git a/dev/clear_testdata.sh b/dev/clear_testdata.sh new file mode 100644 index 0000000..7e8de1a --- /dev/null +++ b/dev/clear_testdata.sh @@ -0,0 +1,3 @@ +sudo rm -r ./testdata +mkdir ./testdata +chmod 777 ./testdata \ No newline at end of file diff --git a/dev/update_dist_files.py b/dev/update_dist_files.py index 10da73a..de93164 100644 --- a/dev/update_dist_files.py +++ b/dev/update_dist_files.py @@ -7,15 +7,15 @@ import os import jinja2 env = jinja2.Environment( - loader=jinja2.FileSystemLoader('dev/templates'), + loader=jinja2.FileSystemLoader('./templates'), autoescape=jinja2.select_autoescape(['html', 'xml']), keep_trailing_newline=True ) -with open("pyproject.toml") as filed: +with open("../pyproject.toml") as filed: data = toml.load(filed) -templatedir = "./dev/templates" +templatedir = "./templates" for root,dirs,files in os.walk(templatedir): @@ -27,7 +27,7 @@ for root,dirs,files in os.walk(templatedir): if not f.endswith('.jinja'): continue srcfile = os.path.join(root,f) - trgfile = os.path.join(reldirpath,f.replace(".jinja","")) + trgfile = os.path.join("..", reldirpath,f.replace(".jinja","")) template = env.get_template(relfilepath)