fix "disgusting hack" in the case of buildsrht
This commit is contained in:
parent
bc2ff7eea6
commit
5e96846e8e
|
@ -3,7 +3,7 @@ import sys
|
|||
import os
|
||||
sys.path.append(os.getcwd())
|
||||
site = sys.argv[1]
|
||||
app = __import__(site.replace(".", "") + ".app").app.app # disgusting hack
|
||||
app = __import__(site.replace(".", "").replace("builds","build") + ".app").app.app # disgusting hack
|
||||
from srht.config import cfg
|
||||
from srht.database import db, DbSession
|
||||
db = DbSession(cfg(site, "connection-string"))
|
||||
|
|
Loading…
Reference in New Issue