[Numpy-svn] r3961 - branches/1.0.3.x/numpy/distutils

numpy-svn@scip... numpy-svn@scip...
Fri Aug 10 03:37:33 CDT 2007


Author: jarrod.millman
Date: 2007-08-10 03:37:24 -0500 (Fri, 10 Aug 2007)
New Revision: 3961

Modified:
   branches/1.0.3.x/numpy/distutils/misc_util.py
Log:
see changeset [3848]


Modified: branches/1.0.3.x/numpy/distutils/misc_util.py
===================================================================
--- branches/1.0.3.x/numpy/distutils/misc_util.py	2007-08-10 08:19:02 UTC (rev 3960)
+++ branches/1.0.3.x/numpy/distutils/misc_util.py	2007-08-10 08:37:24 UTC (rev 3961)
@@ -565,11 +565,12 @@
         #               defines a configuration() function.
         if top_path is None:
             top_path = self.local_path
+            self.local_path = ''
         if package_path is None:
             package_path = self.local_path
         elif os.path.isdir(njoin(self.local_path,package_path)):
             package_path = njoin(self.local_path,package_path)
-        if not os.path.isdir(package_path):
+        if not os.path.isdir(package_path or '.'):
             raise ValueError("%r is not a directory" % (package_path,))
         self.top_path = top_path
         self.package_path = package_path



More information about the Numpy-svn mailing list