-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.py
31 lines (23 loc) · 904 Bytes
/
app.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
31
# parent/app.py
from __future__ import annotations
import os
import sys
from PyQt5.QtWidgets import QApplication
from main import MainWindow
from run_subprocess import convert_ui_files
CURRENT_FILE_PATH = os.path.dirname(os.path.abspath(__file__))
RESOURCES = os.path.join(CURRENT_FILE_PATH, 'resources')
TRAINING_DATASET = os.path.join(CURRENT_FILE_PATH, 'resources', 'training_dataset')
EXTRACTED_DATASET = os.path.join(CURRENT_FILE_PATH, 'resources', 'extracted_dataset')
ATTENDANCE = os.path.join(CURRENT_FILE_PATH, 'attendance')
def create_folders():
os.makedirs(RESOURCES, exist_ok=True)
os.makedirs(TRAINING_DATASET, exist_ok=True)
os.makedirs(EXTRACTED_DATASET, exist_ok=True)
os.makedirs(ATTENDANCE, exist_ok=True)
if __name__ == '__main__':
create_folders()
convert_ui_files()
app = QApplication(sys.argv)
window = MainWindow()
sys.exit(app.exec_())