2019-03-22 14:28:14 +11:00
|
|
|
# Copyright 2019 miruka
|
|
|
|
# This file is part of harmonyqml, licensed under GPLv3.
|
|
|
|
|
|
|
|
import sys
|
|
|
|
|
|
|
|
from PyQt5.QtGui import QGuiApplication
|
|
|
|
|
2019-03-26 20:52:43 +11:00
|
|
|
from .engine import Engine
|
2019-03-22 14:28:14 +11:00
|
|
|
|
|
|
|
# logging.basicConfig(level=logging.INFO)
|
|
|
|
|
|
|
|
|
|
|
|
def run() -> None:
|
2019-03-28 07:21:31 +11:00
|
|
|
try:
|
|
|
|
sys.argv.index("--debug")
|
|
|
|
debug = True
|
|
|
|
except ValueError:
|
|
|
|
debug = False
|
|
|
|
|
2019-03-26 20:52:43 +11:00
|
|
|
app = QGuiApplication(sys.argv)
|
2019-03-28 07:21:31 +11:00
|
|
|
engine = Engine(app, debug=debug)
|
2019-03-26 20:52:43 +11:00
|
|
|
engine.show_window()
|