예제 #1
0
#! /usr/bin/python3

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

# APP GLOBALS

# INIT

Model.init()

App.init()

# MAIN

App.start()
예제 #2
0
파일: main.py 프로젝트: sysdeep/dcat
#!/usr/bin/env python3
# -*- coding: utf-8 -*-

import sys

from app.App import App

#--- lin
# DB_PATH = "/home/nia/Development/_Python/_DCat/Export10/Video.bm.gz"
DB_PATH = "/home/nia/Development/_Python/_DCat/Export10/app2/oxygen_16x16.hmap.gz"
DB_PATH = "/home/nia/Development/_Python/_DCat/Export10/app2/Apps.hmap.gz"
# DB_PATH = "/home/nia/Development/_Python/_DCat/Export10/Apps.bm.gz"

#--- win
# DB_PATH = """E:\\_Wrk\\_Python\\_DCat\\Bin10Test\\files\\P50.hmap.gz"""

if __name__ == "__main__":

    if len(sys.argv) > 1:
        path = sys.argv[1]
    else:
        path = DB_PATH
    app = App(db_path=path)
    app.start()
예제 #3
0
#!/usr/bin/env python3
# -*- coding: utf-8 -*-

from app.App import App
from app.rc import DIR_PROJECT

app = App()
app.start(DIR_PROJECT)