def init_db(): dbfile = os.path.join(os.path.dirname(__file__), 'db.sqlite') Database.global_init(dbfile)