[Scipy-svn] r3265 - trunk/scipy/weave

scipy-svn@scip... scipy-svn@scip...
Mon Aug 27 08:45:44 CDT 2007


Author: stefan
Date: 2007-08-27 08:45:32 -0500 (Mon, 27 Aug 2007)
New Revision: 3265

Modified:
   trunk/scipy/weave/catalog.py
Log:
Fix #482 a different way.


Modified: trunk/scipy/weave/catalog.py
===================================================================
--- trunk/scipy/weave/catalog.py	2007-08-27 13:39:11 UTC (rev 3264)
+++ trunk/scipy/weave/catalog.py	2007-08-27 13:45:32 UTC (rev 3265)
@@ -176,13 +176,9 @@
     """
 
     # Use a cached value for fast return if possible
-    try:
-        assert os.path.exists(default_dir.cached_path)
+    if hasattr(default_dir,"cached_path") and \
+       os.path.exists(default_dir.cached_path):
         return default_dir.cached_path
-    except AttributeError:
-        pass
-    except AssertionError:
-        pass
 
     python_name = "python%d%d_compiled" % tuple(sys.version_info[:2])
     if sys.platform != 'win32':



More information about the Scipy-svn mailing list