4872c3bf39
Watching folders will only be done if --debug is provided, to avoid filesystem scan slowdowns and over watch limit errors.
23 lines
438 B
Python
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()
|