-
Notifications
You must be signed in to change notification settings - Fork 6
/
main.py
30 lines (25 loc) · 842 Bytes
/
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# coding=utf-8
import logging
import sys
from PyQt5.QtWidgets import QApplication
from os.path import join
from controladores.Main import Main
from libs.Utiles import LeerIni, initialize_logger
def inicio():
initialize_logger(LeerIni("iniciosistema"))
# logging.basicConfig(filename=join(LeerIni("iniciosistema"), 'errors.log'), level=logging.DEBUG,
# format='%(asctime)s %(message)s',
# datefmt='%m/%d/%Y %I:%M:%S %p')
if LeerIni(clave='homo') == 'S':
print("Sistema en modo homologacion")
else:
print("Sistema en modo produccion")
# Instancia para iniciar una aplicación
args = []
#args = ['', '-style', 'Cleanlooks']
app = QApplication(args)
ex = Main()
ex.run()
sys.exit(app.exec_())
if __name__ == "__main__":
inicio()