Update __init__.py

This commit is contained in:
Max Zwiessele 2015-09-12 14:21:29 +01:00
parent 5e5dc0eac5
commit d876847d69

View file

@ -2,10 +2,11 @@
# Licensed under the BSD 3-clause license (see LICENSE.txt) # Licensed under the BSD 3-clause license (see LICENSE.txt)
try: try:
import matplotlib
from . import matplot_dep from . import matplot_dep
except (ImportError, NameError): except (ImportError, NameError):
# Matplotlib not available # Matplotlib not available
import warnings import warnings
warnings.warn(ImportWarning("Matplotlib not available, install newest version of Matplotlib for plotting")) warnings.warn(ImportWarning("Matplotlib not available, install newest version of Matplotlib for plotting"))
#sys.modules['matplotlib'] = #sys.modules['matplotlib'] =
#sys.modules[__name__+'.matplot_dep'] = ImportWarning("Matplotlib not available, install newest version of Matplotlib for plotting") #sys.modules[__name__+'.matplot_dep'] = ImportWarning("Matplotlib not available, install newest version of Matplotlib for plotting")