2015-07-12 11:46:12 -05:00
|
|
|
import sys, os
|
2020-11-09 23:57:01 +01:00
|
|
|
|
|
|
|
# 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 17:13:56 -05:00
|
|
|
import pyqtgraph as pg
|
2020-10-19 11:51:12 -07:00
|
|
|
from pyqtgraph.Qt import QtCore, QtGui
|
2015-07-12 17:13:56 -05:00
|
|
|
|
2013-04-29 08:13:28 -04:00
|
|
|
|
2012-03-01 21:55:32 -05:00
|
|
|
if __name__ == '__main__':
|
2020-10-19 11:51:12 -07:00
|
|
|
from .ExampleApp import main as run
|
2019-06-01 22:18:39 -07:00
|
|
|
run()
|