AstroJS/botan-rebuild.py

18 lines
477 B
Python
Raw Normal View History

2016-05-31 16:35:58 +00:00
#!env/bin/python
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
config["Paths"]["SiteRoot"] = SiteRoot;
2015-08-14 10:12:10 +00:00
bmap = os.path.join( config["Paths"]["Cache"], "botanjs", "bmap.xml" )
app.conf.update( BROKER_URL = config["BotanJS"]["CeleryBroker"] )
JWork.buildClassMap.delay( config["BotanJS"]["SrcDir"], bmap )