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

scipy-svn at scipy.org scipy-svn at scipy.org
Mon Aug 27 09:39:22 EDT 2007


Author: stefan
Date: 2007-08-27 08:39:11 -0500 (Mon, 27 Aug 2007)
New Revision: 3264

Modified:
   trunk/scipy/weave/catalog.py
Log:
Ensure that weave output directory exists.  Closes #482.


Modified: trunk/scipy/weave/catalog.py
===================================================================
--- trunk/scipy/weave/catalog.py	2007-08-27 13:29:59 UTC (rev 3263)
+++ trunk/scipy/weave/catalog.py	2007-08-27 13:39:11 UTC (rev 3264)
@@ -177,9 +177,12 @@
 
     # Use a cached value for fast return if possible
     try:
+        assert 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