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