12 lines
349 B
Python
12 lines
349 B
Python
|
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)
|