[Distutils] PATCH: setuptools-0.4a2 resource_filename prob
Ryan Tomayko
rtomayko at gmail.com
Tue Jun 14 01:33:34 CEST 2005
Ran into a minor issue with resource_filename:
Traceback (most recent call last):
File "pkg_resources.py", line 388, in resource_filename
File "pkg_resources.py", line 728, in get_resource_filename
File "pkg_resources.py", line 740, in _extract_resource
File "pkg_resources.py", line 569, in resource_isdir
NameError: global name 'resource_name' is not defined
One liner:
Index: pkg_resources.py
===================================================================
RCS file: /cvsroot/python/python/nondist/sandbox/setuptools/
pkg_resources.py,v
retrieving revision 1.29
diff -u -r1.29 pkg_resources.py
--- pkg_resources.py 12 Jun 2005 21:47:33 -0000 1.29
+++ pkg_resources.py 13 Jun 2005 23:26:44 -0000
@@ -566,7 +566,7 @@
return yield_lines(self.get_metadata(name))
def resource_isdir(self,name):
- return self._isdir(self._fn(self.module_path, resource_name))
+ return self._isdir(self._fn(self.module_path, name))
def metadata_isdir(self,name):
return self.egg_info and self._isdir(self._fn
(self.egg_info,name))
Ryan Tomayko
rtomayko at gmail.com
http://naeblis.cx/rtomayko/
More information about the Distutils-SIG
mailing list