heroweb/poc/template_fixer.py

11 lines
345 B
Python
Raw Normal View History

2024-09-01 18:00:13 +00:00
from tools.templatefixer import new as templatefixer
import os
2024-09-02 05:57:47 +00:00
mypath="~/code/git.ourworld.tf/freeflowuniverse/heroweb/poc"
2024-09-01 18:00:13 +00:00
p = os.path.abspath(os.path.expanduser(mypath))
if not os.path.exists(p):
raise FileNotFoundError(f"The path does not exist: {p}")
2024-09-02 05:28:06 +00:00
fixer=templatefixer(f"{p}/in", f"{p}/out",static_dir=f"{p}/static",reset=True)