make python examples/ work again

This commit is contained in:
Luke Campagnola 2015-07-12 17:13:56 -05:00
parent ed35993ae1
commit 179b8db79d
2 changed files with 5 additions and 6 deletions

View File

@ -1,14 +1,14 @@
import sys, os 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__==''): if __name__ == "__main__" and (__package__ is None or __package__==''):
parent_dir = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) parent_dir = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
sys.path.insert(0, parent_dir) sys.path.insert(0, parent_dir)
import examples import examples
__package__ = "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 from .utils import buildFileList, testFile, path, examples

View File

@ -144,7 +144,6 @@ except:
while True: while True:
c = process.stdout.read(1).decode() c = process.stdout.read(1).decode()
output += c output += c
print(output)
#sys.stdout.write(c) #sys.stdout.write(c)
#sys.stdout.flush() #sys.stdout.flush()
if output.endswith('test complete'): if output.endswith('test complete'):