From: <kin...@us...> - 2011-07-15 05:22:55
|
Revision: 4953 http://teem.svn.sourceforge.net/teem/?rev=4953&view=rev Author: kindlmann Date: 2011-07-15 05:22:41 +0000 (Fri, 15 Jul 2011) Log Message: ----------- added nrrdSanity() call to make sure things are ok Modified Paths: -------------- teem/trunk/python/ctypes/teem-gen.py Modified: teem/trunk/python/ctypes/teem-gen.py =================================================================== --- teem/trunk/python/ctypes/teem-gen.py 2011-07-15 03:54:00 UTC (rev 4952) +++ teem/trunk/python/ctypes/teem-gen.py 2011-07-15 05:22:41 UTC (rev 4953) @@ -258,6 +258,19 @@ footer = [ "# =============================================================", +"# Make sure this shared library will work on this machine.", +"if not nrrdSanity():", +" errstr = biffGetDone(NRRD)", +" print \"**\"", +" print \"** Sorry, there is a problem (described below) with the \"", +" print \"** Teem shared library that prevents its use. This will \"", +" print \"** have to be fixed by recompiling the Teem library for \"", +" print \"** this platform. \"", +" print \"**\"", +" print \"** %s\" % errstr", +" raise ImportError", +"", +"# =============================================================", "# Its nice to have these FILE*s around for utility use, but they ", "# aren't available in a platform-independent way in ctypes. These ", "# air functions were created for this purpose.", This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |