now just comparing substring to figure out if setup_processing was importing the core module

This commit is contained in:
Martin Diehl 2012-10-25 12:40:06 +00:00
parent ca596bc7af
commit 78aa010565
1 changed files with 1 additions and 1 deletions

View File

@ -44,7 +44,7 @@ try:
#core.mesh.deformedCoordsFFT = core.mesh.mesh_deformedCoordsFFT
except ImportError, e:
core = None # from http://www.python.org/dev/peps/pep-0008/
if(sys.argv[0]!='setup_processing.py'):
if('setup_processing' not in sys.argv[0]):
sys.stderr.write('\nWARNING: Core module (Fortran code) not available, '\
'try to run setup_processing.py\nError Message when importing core.so: %s\n\n'%e)