18 lines
477 B
Python
Executable File
18 lines
477 B
Python
Executable File
#!env/bin/python
|
|
import os, sys
|
|
sys.path.append( os.path.abspath( "." ) )
|
|
|
|
from botanjs.service.jwork import app, JWork
|
|
from botanjs.config import Config as config
|
|
|
|
SiteRoot = os.path.abspath( "." )
|
|
|
|
# Setting the SiteRoot for config
|
|
config["Paths"]["SiteRoot"] = SiteRoot;
|
|
|
|
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 )
|