From: Jack Jansen Date: Thu, 30 Aug 2001 21:19:42 +0000 (+0000) Subject: We should look in the directory containing the module, not in the module itself,... X-Git-Tag: v2.2a3~188 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b214c36d0a4f2c2aae60a300cf41b4814593fd56;p=thirdparty%2FPython%2Fcpython.git We should look in the directory containing the module, not in the module itself, when we're looking for the resource file. --- diff --git a/Mac/Lib/macresource.py b/Mac/Lib/macresource.py index 9b442a8cd2e3..001e6cc7bb69 100644 --- a/Mac/Lib/macresource.py +++ b/Mac/Lib/macresource.py @@ -49,7 +49,7 @@ def need(restype, resid, filename=None, modname=None): if sys.modules.has_key(modname): mod = sys.modules[modname] if hasattr(mod, '__file__'): - searchdirs = [mod.__file__] + searchdirs = [os.path.split(mod.__file__)[0]] if not searchdirs: searchdirs = sys.path