Fix SiteRoot for rebuild

This commit is contained in:
斟酌 鵬兄 2016-06-01 00:23:24 +08:00
parent 3a333c1865
commit 65100e652c
1 changed files with 5 additions and 0 deletions

View File

@ -5,6 +5,11 @@ 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"] )