pyqtgraph/examples/__main__.py

16 lines
384 B
Python
Raw Normal View History

import sys, os
2015-07-12 22:13:56 +00:00
import pyqtgraph as pg
from pyqtgraph.Qt import QtCore, QtGui
2015-07-12 22:13:56 +00:00
2015-07-12 20:45:39 +00:00
if __name__ == '__main__':
if __package__ is None or __package__ == "":
parent_dir = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
sys.path.insert(0, parent_dir)
import examples
__package__ = "examples"
from .ExampleApp import main as run
run()