예제 #1
0
    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])
예제 #2
0
#! /usr/bin/python3

from app.App import App
from app.Model import Model

# APP GLOBALS

# INIT

Model.init()

App.init()

# MAIN

App.start()