nmreval/bin/evaluate.py
dominik 8d148b639b BUGFIX: VFT;
change to src layout
2022-10-20 17:23:15 +02:00

27 lines
566 B
Python
Executable File

#!/usr/bin/env python3
import sys
import pathlib
sys.path.append(str(pathlib.Path(__file__).parent.parent / 'src'))
from nmreval.configs import check_for_config
# does a directory for config stuff exist? create it if not
check_for_config()
# pyqtgraph warns on Mac if QApplication is created when it is imported
# import pyqtgraph
from nmreval.lib.logger import handle_exception
sys.excepthook = handle_exception
from gui_qt import App
from gui_qt.main.mainwindow import NMRMainWindow
app = App([])
mplQt = NMRMainWindow()
mplQt.show()
sys.exit(app.exec())