Fixing windows bugs. Trying to fix some more.
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Adsooi 2021-08-26 18:57:49 +02:00
parent fda467e355
commit ebeb86f994
Signed by: Ad5001
GPG key ID: EF45F9C6AFE20160
4 changed files with 7 additions and 4 deletions

View file

@ -181,14 +181,15 @@ def run():
engine.addImportPath(path.realpath(path.join(getcwd(), "qml")))
engine.load(path.realpath(path.join(getcwd(), "qml", "eu", "ad5001", "LogarithmPlotter", "LogarithmPlotter.qml")))
if not engine.rootObjects():
print("No root object", path.realpath(path.join(getcwd(), "qml")))
print(path.realpath(path.join(getcwd(), "qml", "eu", "ad5001", "LogarithmPlotter", "LogarithmPlotter.qml")))
exit(-1)
chdir(pwd)
if len(argv) > 0 and path.exists(argv[-1]) and argv[-1].split('.')[-1] in ['lpf']:
engine.rootObjects()[0].loadDiagram(argv[-1])
chdir(path.dirname(path.realpath(__file__)))
if not engine.rootObjects():
print("No root object")
exit(-1)
if platform == "darwin":
macOSFileOpenHandler.init_graphics(engine.rootObjects()[0])