Skip to content

Commit

Permalink
Added a main function to the __main__.py script to enable the correct…
Browse files Browse the repository at this point in the history
… implementation in the entry point
  • Loading branch information
ArJaVer committed Oct 14, 2024
1 parent c9e2af1 commit 87158f4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions src/evaluix/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3428,15 +3428,17 @@ def ICP(self):
QDesktopServices.openUrl(QUrl("https://www.youtube.com/watch?v=8GyVx28R9-s&t=112"))
QApplication.instance().restoreOverrideCursor()

if __name__ == '__main__':
def main():
try:
app = QApplication([])
window = MainWindow()
window.show()
app.exec()

except Exception as e:
with open(own_path / 'log.txt', 'a') as f:
f.write(str(e))
f.write(traceback.format_exc())
raise e
raise e

if __name__ == "__main__":
main()
2 changes: 1 addition & 1 deletion src/evaluix/__version__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.9.1.19"
__version__ = "0.9.1.20"

0 comments on commit 87158f4

Please sign in to comment.