Skip to content

Commit

Permalink
fixes #1064
Browse files Browse the repository at this point in the history
  • Loading branch information
danielhrisca committed Aug 13, 2024
1 parent f6ea528 commit 99aa610
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions src/asammdf/gui/asammdfgui.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,6 @@
import os
import sys

os.environ["QT_API"] = "pyside6"
os.environ["PYQTGRAPH_QT_LIB"] = "PySide6"

alternative_sitepacakges = os.environ.get("ASAMMDF_PYTHONPATH", "")

if alternative_sitepacakges:
os.environ["PYTHONPATH"] = alternative_sitepacakges
sys.path.insert(0, alternative_sitepacakges)

import pyqtgraph
from PySide6 import QtWidgets

from asammdf.gui.utils import excepthook, set_app_user_model_id
from asammdf.gui.widgets.main import MainWindow
from asammdf.gui.widgets.plot import monkey_patch_pyqtgraph

sys.excepthook = excepthook


def _cmd_line_parser():
""""""
Expand All @@ -30,6 +12,24 @@ def _cmd_line_parser():


def main(measurements=None):
os.environ["QT_API"] = "pyside6"
os.environ["PYQTGRAPH_QT_LIB"] = "PySide6"

alternative_sitepacakges = os.environ.get("ASAMMDF_PYTHONPATH", "")

if alternative_sitepacakges:
os.environ["PYTHONPATH"] = alternative_sitepacakges
sys.path.insert(0, alternative_sitepacakges)

import pyqtgraph
from PySide6 import QtWidgets

from asammdf.gui.utils import excepthook, set_app_user_model_id
from asammdf.gui.widgets.main import MainWindow
from asammdf.gui.widgets.plot import monkey_patch_pyqtgraph

sys.excepthook = excepthook

monkey_patch_pyqtgraph()
parser = _cmd_line_parser()
args = parser.parse_args(sys.argv[1:])
Expand Down

0 comments on commit 99aa610

Please sign in to comment.