croaking about missing core module now goes to STDERR (formerly this influenced piped STDOUT detrimentally...)

This commit is contained in:
Philip Eisenlohr 2012-02-16 18:02:15 +00:00
parent a994b4bcc9
commit ae8ec80dd0
1 changed files with 3 additions and 1 deletions

View File

@ -1,8 +1,10 @@
# $Id$ # $Id$
import sys
from .environment import Environment # only one class from .environment import Environment # only one class
from .asciitable import ASCIItable # only one class from .asciitable import ASCIItable # only one class
from .config import Material # will be extended to debug and numerics from .config import Material # will be extended to debug and numerics
#from .block import Block # only one class
from .result import Result # one class with subclasses from .result import Result # one class with subclasses
from .geometry import Geometry # one class with subclasses from .geometry import Geometry # one class with subclasses
from .solver import Solver # one class with subclasses from .solver import Solver # one class with subclasses
@ -10,4 +12,4 @@ from .test import Test
try: try:
from . import core from . import core
except: except:
print 'Core module (Fortran code) not available, try to run setup_processing.py' sys.stderr.write('Core module (Fortran code) not available, try to run setup_processing.py\n')