def db(params): if len(params) == 0: return if params[0] == 'list': dbs = os.listdir("./db/") App_tpl.list_dbs(dbs) elif params[0] == 'use' and len(params) == 2: print("Now using: " + params[1]) Model.init(params[1])
#! /usr/bin/python3 from app.App import App from app.Model import Model # APP GLOBALS # INIT Model.init() App.init() # MAIN App.start()