blob: 104063bc666eb3493955ba7cb83f8f0549204eda (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
import sys
from PyQt5 import QtCore, QtWidgets
import sqlite3
import os.path
import db.init
import gui.window
import arguments
import database
args = arguments.parser().parse_args()
database.init(args.database if args.database != None else 'database')
app = QtWidgets.QApplication(sys.argv)
window = gui.window.get()
window.show()
res = app.exec_()
database.close()
sys.exit(res)
|