moment/harmonyqml/__init__.py

23 lines
438 B
Python
Raw Normal View History

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
from .engine import Engine
2019-03-22 14:28:14 +11:00
# logging.basicConfig(level=logging.INFO)
def run() -> None:
try:
sys.argv.index("--debug")
debug = True
except ValueError:
debug = False
app = QGuiApplication(sys.argv)
engine = Engine(app, debug=debug)
engine.show_window()