import numpy in pyqtgraph.__init__ to avoid confusing import errors

This commit is contained in:
Luke Campagnola 2013-01-12 14:39:23 -05:00
parent c5dd0f4f63
commit 296b709550

View File

@ -16,6 +16,9 @@ from .Qt import QtGui
#if QtGui.QApplication.instance() is None:
#app = QtGui.QApplication([])
import numpy ## pyqtgraph requires numpy
## (import here to avoid massive error dump later on if numpy is not available)
import os, sys
## check python version