-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
22 lines (16 loc) · 1003 Bytes
/
Copy pathmain.py
File metadata and controls
22 lines (16 loc) · 1003 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#* Entry point for the desktop application
#* Точка входа для десктопного приложения
#! WARNING: changing sys.path can break imports if structure changes
#! ВНИМАНИЕ: изменение sys.path может сломать импорты при смене структуры
import sys
import os
#? TODO: consider switching to a proper package install instead of sys.path hack
#? НАДО: подумать о переходе на нормальную установку пакета вместо трюка с sys.path
sys.path.insert(0, os.path.join(os.path.dirname(os.path.abspath(__file__)), "source"))
#* Import the main desktop application entry function
#* Импортируем главную функцию запуска десктопного приложения
from desktop import main
# regular guard for direct execution
# стандартная защита от запуска при импорте
if __name__ == "__main__":
main()