create db on start/debug if missing

This commit is contained in:
j 2014-08-11 19:32:49 +02:00
commit d1f63bf0db
4 changed files with 5 additions and 2 deletions

View file

@ -31,6 +31,8 @@ class MainHandler(OMLHandler):
serve_static(self, path, 'text/html')
def run():
import setup
setup.create_db()
root_dir = os.path.normpath(os.path.join(os.path.abspath(os.path.dirname(__file__)), '..'))
PID = sys.argv[2] if len(sys.argv) > 2 else None