summaryrefslogtreecommitdiffstats
path: root/Mac
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2001-08-30 21:19:42 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>2001-08-30 21:19:42 (GMT)
commitb214c36d0a4f2c2aae60a300cf41b4814593fd56 (patch)
treed6474cf674a38c84f9add787008cd87753995481 /Mac
parenteb9f384c283195a87a585ae7ef0ff66667493af6 (diff)
downloadcpython-b214c36d0a4f2c2aae60a300cf41b4814593fd56.zip
cpython-b214c36d0a4f2c2aae60a300cf41b4814593fd56.tar.gz
cpython-b214c36d0a4f2c2aae60a300cf41b4814593fd56.tar.bz2
We should look in the directory containing the module, not in the module itself, when we're looking for the resource file.
Diffstat (limited to 'Mac')
-rw-r--r--Mac/Lib/macresource.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Mac/Lib/macresource.py b/Mac/Lib/macresource.py
index 9b442a8..001e6cc 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