pyqtgraph/examples/__main__.py

17 lines
463 B
Python
Raw Normal View History

import sys, os
# Set up path to contain pyqtgraph module when run without installation
if __name__ == "__main__" and (__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"
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
if __name__ == '__main__':
from .ExampleApp import main as run
run()