make python examples/
work again
This commit is contained in:
parent
ed35993ae1
commit
179b8db79d
@ -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
|
||||||
|
|
||||||
|
@ -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'):
|
||||||
|
Loading…
Reference in New Issue
Block a user