heroweb/poc/template_prepare.py

12 lines
349 B
Python
Raw Normal View History

2024-09-09 03:56:44 +00:00
import os
from heroserver.web.templatefixer import new as templatefixer
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}')
templatefixer(f'{p}/in', f'{p}/out', static_dir=f'{p}/static', reset=True)