AstroJS/botan-rebuild.py

18 lines
482 B
Python
Raw Normal View History

2022-08-02 16:45:41 +00:00
#!/usr/bin/env python3
2015-08-14 10:12:10 +00:00
import os, sys
sys.path.append( os.path.abspath( "." ) )
from botanjs.service.jwork import app, JWork
from botanjs.config import Config as config
2016-05-31 16:23:24 +00:00
SiteRoot = os.path.abspath( "." )
# Setting the SiteRoot for config
2020-09-22 17:37:10 +00:00
config["Paths"]["SiteRoot"] = SiteRoot
2016-05-31 16:23:24 +00:00
2015-08-14 10:12:10 +00:00
bmap = os.path.join( config["Paths"]["Cache"], "botanjs", "bmap.xml" )
2021-09-05 15:16:37 +00:00
app.conf.update( broker_url = config["BotanJS"]["CeleryBroker"] )
2015-08-14 10:12:10 +00:00
JWork.buildClassMap.delay( config["BotanJS"]["SrcDir"], bmap )