h5py is not available on IronPython (Abaqus python environment)

This commit is contained in:
Martin Diehl 2016-10-14 07:04:46 +02:00
parent 9ac3f564c8
commit 75149cc0cd
1 changed files with 4 additions and 1 deletions

View File

@ -8,7 +8,10 @@ with open(os.path.join(os.path.dirname(__file__),'../../VERSION')) as f:
from .environment import Environment # noqa
from .asciitable import ASCIItable # noqa
from .h5table import H5Table # noqa
try:
from .h5table import H5Table # noqa
except ImportError:
print("h5py module not found")
from .config import Material # noqa
from .colormaps import Colormap, Color # noqa
from .orientation import Quaternion, Rodrigues, Symmetry, Orientation # noqa