forked from LagoLunatic/wwrando
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwwrando.py
27 lines (21 loc) · 804 Bytes
/
wwrando.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
#!/usr/bin/python3.6
from PySide2.QtGui import *
from PySide2.QtCore import *
from PySide2.QtWidgets import *
import sys
from ui.randomizer_window import WWRandomizerWindow
try:
from sys import _MEIPASS
except ImportError:
# Setting the app user model ID is necessary for Windows to display a custom taskbar icon when running the randomizer from source.
import ctypes
app_id = "LagoLunatic.WindWakerRandomizer"
try:
ctypes.windll.shell32.SetCurrentProcessExplicitAppUserModelID(app_id)
except AttributeError:
# Versions of Windows before Windows 7 don't support SetCurrentProcessExplicitAppUserModelID, so just swallow the error.
pass
cmd_line_args = sys.argv[1:]
qApp = QApplication(sys.argv)
window = WWRandomizerWindow(cmd_line_args=cmd_line_args)
sys.exit(qApp.exec_())