fix "disgusting hack" in the case of buildsrht

This commit is contained in:
Julien Moutinho 2021-08-23 19:34:24 +02:00 committed by Drew DeVault
parent bc2ff7eea6
commit 5e96846e8e
1 changed files with 1 additions and 1 deletions

View File

@ -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"))