heroweb/poc/template_fixer.py
2024-09-02 07:57:47 +02:00

11 lines
345 B
Python

from tools.templatefixer import new as templatefixer
import os
mypath="~/code/git.ourworld.tf/freeflowuniverse/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}/in", f"{p}/out",static_dir=f"{p}/static",reset=True)