[Python-checkins] python/nondist/sandbox/setuptools pkg_resources.py, 1.40, 1.41

pje@users.sourceforge.net pje at users.sourceforge.net
Fri Jul 15 06:11:40 CEST 2005


Update of /cvsroot/python/python/nondist/sandbox/setuptools
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29688

Modified Files:
	pkg_resources.py 
Log Message:
Fix a problem extracting resources from nested packages.


Index: pkg_resources.py
===================================================================
RCS file: /cvsroot/python/python/nondist/sandbox/setuptools/pkg_resources.py,v
retrieving revision 1.40
retrieving revision 1.41
diff -u -d -r1.40 -r1.41
--- pkg_resources.py	13 Jul 2005 00:09:25 -0000	1.40
+++ pkg_resources.py	15 Jul 2005 04:11:37 -0000	1.41
@@ -531,7 +531,6 @@
             "Please set the PYTHON_EGG_CACHE enviroment variable"
         )
 
-
 def require(*requirements):
     """Ensure that distributions matching `requirements` are on ``sys.path``
 
@@ -717,6 +716,7 @@
             old = path
             path, base = os.path.split(path)
             self.prefix.append(base)
+        self.prefix.reverse()
 
     def _has(self, path):
         return os.path.exists(path)
@@ -736,7 +736,6 @@
 
 register_loader_type(type(None), DefaultProvider)
 
-
 class ZipProvider(DefaultProvider):
     """Resource support for zips and eggs"""
 



More information about the Python-checkins mailing list