PATCH: setuptools-0.4a2 resource_filename prob

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@gmail.com http://naeblis.cx/rtomayko/

At 07:33 PM 6/13/2005 -0400, Ryan Tomayko wrote:
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
Fixed in 0.4a3, along with the __file__ problem. I haven't done anything yet on implementing 'legacy.py', as there are still some details to think about.

On Jun 13, 2005, at 9:42 PM, Phillip J. Eby wrote:
At 07:33 PM 6/13/2005 -0400, Ryan Tomayko wrote:
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
Fixed in 0.4a3, along with the __file__ problem.
Great.
I haven't done anything yet on implementing 'legacy.py', as there are still some details to think about.
No prob. I'm not in a big rush or anything. I just wanted to raise the issue sooner than later. Ryan Tomayko rtomayko@gmail.com http://naeblis.cx/rtomayko/
participants (2)
-
Phillip J. Eby
-
Ryan Tomayko