From 947858d1921ae51496e78db10956eab6eba61cf4 Mon Sep 17 00:00:00 2001 From: Martin Diehl Date: Sun, 5 Feb 2017 17:19:47 +0100 Subject: [PATCH] caused trouble when writing ASCII table to stdout --- lib/damask/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/damask/__init__.py b/lib/damask/__init__.py index c71d50a94..eedfdd0c0 100644 --- a/lib/damask/__init__.py +++ b/lib/damask/__init__.py @@ -1,7 +1,7 @@ # -*- coding: UTF-8 no BOM -*- """Main aggregator""" -import os +import os,sys with open(os.path.join(os.path.dirname(__file__),'../../VERSION')) as f: version = f.readline()[:-1] @@ -11,7 +11,7 @@ from .asciitable import ASCIItable # noqa try: from .h5table import H5Table # noqa except ImportError: - print("h5py module not found") + sys.stderr.write("h5py module not found") from .config import Material # noqa from .colormaps import Colormap, Color # noqa from .orientation import Quaternion, Rodrigues, Symmetry, Orientation # noqa