-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathOTool.py
25 lines (20 loc) · 802 Bytes
/
OTool.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
import sys
import logging
from Core.Config import get_config
from Windows.OSelector import OSelector
from PyQt5.QtWidgets import QApplication
if __name__ == '__main__':
logging.basicConfig(filemode="w",
filename="logs.log",
level=logging.getLevelName(get_config().get("LOG", "level")),
format='%(asctime)s - [%(levelname)s] - %(name)s : %(message)s',
datefmt='%m/%d/%Y %I:%M:%S %p')
if not get_config().get("LOG", "enabled"):
logger = logging.getLogger()
logger.disabled = True
logging.info(" =============== STARTING LOGGING ===============")
app = QApplication(sys.argv)
window = OSelector()
window.setAppStyle(app)
window.open()
sys.exit(app.exec_())