From 78aa0105654a944edfe67454adf759b3e4785a19 Mon Sep 17 00:00:00 2001 From: Martin Diehl Date: Thu, 25 Oct 2012 12:40:06 +0000 Subject: [PATCH] now just comparing substring to figure out if setup_processing was importing the core module --- lib/damask/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/damask/__init__.py b/lib/damask/__init__.py index 0f3b0516c..de976ee00 100644 --- a/lib/damask/__init__.py +++ b/lib/damask/__init__.py @@ -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)