From 93d7b1b02e556589414007aac4f4ccef4f84fa7b Mon Sep 17 00:00:00 2001 From: Romain Boman <r.boman@uliege.be> Date: Thu, 9 Jun 2022 09:38:32 +0200 Subject: [PATCH] fix model path & window raise --- fossils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fossils.py b/fossils.py index fbefa62..4076fdf 100644 --- a/fossils.py +++ b/fossils.py @@ -44,7 +44,7 @@ class Window(QWidget, Ui_Form): def default_inputfile(self): testnames = [ - os.path.join(os.path.dirname(__file__),'models','others','dolicorhynchops_10k.py'), + os.path.join(os.path.dirname(__file__),'models','others','dolicorhynchops','dolicorhynchops_10k.py'), os.path.join(os.path.dirname(__file__),'models','dolicorhynchops','dolicorhynchops_10k.py'), ] for name in testnames: @@ -302,6 +302,7 @@ if __name__ == "__main__": win = Window() win.setWindowTitle("Fossils") win.show() + win.setWindowState(Qt.WindowActive) # try to make it appear above any other window (and particularly the console window) app.lastWindowClosed.connect(app.quit) app.exec_() -- GitLab