diff options
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/plat-mac/macresource.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Lib/plat-mac/macresource.py b/Lib/plat-mac/macresource.py index 26f90940..7e99c00 100644 --- a/Lib/plat-mac/macresource.py +++ b/Lib/plat-mac/macresource.py @@ -49,9 +49,8 @@ def need(restype, resid, filename=None, modname=None): if sys.modules.has_key(modname): mod = sys.modules[modname] if hasattr(mod, '__file__'): - searchdirs = [os.path.split(mod.__file__)[0]] - if not searchdirs: - searchdirs = sys.path + searchdirs = [os.path.dirname(mod.__file__)] + searchdirs.extend(sys.path) # And look for the file for dir in searchdirs: |