From 179b8db79d67107b3cf80ebcc8259993b7308894 Mon Sep 17 00:00:00 2001 From: Luke Campagnola Date: Sun, 12 Jul 2015 17:13:56 -0500 Subject: [PATCH] make `python examples/` work again --- examples/__main__.py | 10 +++++----- examples/utils.py | 1 - 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/examples/__main__.py b/examples/__main__.py index 877e105c..03c41119 100644 --- a/examples/__main__.py +++ b/examples/__main__.py @@ -1,14 +1,14 @@ import sys, os -import pyqtgraph as pg -import subprocess -from pyqtgraph.python2_3 import basestring -from pyqtgraph.Qt import QtGui, USE_PYSIDE, USE_PYQT5 - 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" +import pyqtgraph as pg +import subprocess +from pyqtgraph.python2_3 import basestring +from pyqtgraph.Qt import QtGui, USE_PYSIDE, USE_PYQT5 + from .utils import buildFileList, testFile, path, examples diff --git a/examples/utils.py b/examples/utils.py index 7dfa7e45..3ff265c4 100644 --- a/examples/utils.py +++ b/examples/utils.py @@ -144,7 +144,6 @@ except: while True: c = process.stdout.read(1).decode() output += c - print(output) #sys.stdout.write(c) #sys.stdout.flush() if output.endswith('test complete'):