2022-03-08 10:27:40 +01:00
|
|
|
#!/usr/bin/env python3
|
|
|
|
|
|
|
|
import sys
|
2022-03-25 11:04:02 +01:00
|
|
|
import pathlib
|
2022-11-08 20:07:16 +01:00
|
|
|
sys.path.append(str(pathlib.Path(__file__).absolute().parent.parent / 'src'))
|
2022-03-25 11:04:53 +01:00
|
|
|
|
2022-04-16 20:41:26 +02:00
|
|
|
from nmreval.configs import check_for_config
|
|
|
|
|
|
|
|
# does a directory for config stuff exist? create it if not
|
|
|
|
check_for_config()
|
|
|
|
|
2022-03-08 10:27:40 +01:00
|
|
|
# pyqtgraph warns on Mac if QApplication is created when it is imported
|
2022-03-25 11:04:02 +01:00
|
|
|
# import pyqtgraph
|
2022-03-08 10:27:40 +01:00
|
|
|
|
|
|
|
from nmreval.lib.logger import handle_exception
|
|
|
|
sys.excepthook = handle_exception
|
|
|
|
|
2022-10-20 17:23:15 +02:00
|
|
|
from gui_qt import App
|
2022-03-08 10:27:40 +01:00
|
|
|
|
2023-01-05 15:27:33 +01:00
|
|
|
app = App(['Team Rocket FTW!'])
|
|
|
|
|
|
|
|
from gui_qt.main.mainwindow import NMRMainWindow
|
2022-03-08 10:27:40 +01:00
|
|
|
|
|
|
|
mplQt = NMRMainWindow()
|
|
|
|
mplQt.show()
|
|
|
|
|
|
|
|
sys.exit(app.exec())
|