moment/harmonyqml/__init__.py
miruka 4872c3bf39 Recursive watch folders for reloading, --debug
Watching folders will only be done if --debug is provided, to avoid
filesystem scan slowdowns and over watch limit errors.
2019-03-27 16:21:31 -04:00

23 lines
438 B
Python

# Copyright 2019 miruka
# This file is part of harmonyqml, licensed under GPLv3.
import sys
from PyQt5.QtGui import QGuiApplication
from .engine import Engine
# 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()