26 lines
556 B
Python
26 lines
556 B
Python
from __future__ import annotations
|
|
|
|
import sys
|
|
from pathlib import Path
|
|
|
|
|
|
_BASE_DIR = Path(__file__).resolve().parent.parent
|
|
if str(_BASE_DIR) not in sys.path:
|
|
sys.path.insert(0, str(_BASE_DIR))
|
|
|
|
from douyin.updater.bootstrap import run_startup_update_check_early
|
|
|
|
|
|
run_startup_update_check_early(app_name="gui_app")
|
|
|
|
from douyin.core.version import print_version_banner # noqa: E402
|
|
from gui.gui_app import main # noqa: E402
|
|
|
|
|
|
if __name__ == "__main__":
|
|
try:
|
|
print_version_banner("gui_app")
|
|
except Exception:
|
|
pass
|
|
main()
|