heroweb/poc2/template_fixer_do.py

11 lines
343 B
Python
Raw Permalink Normal View History

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