From: Guido van Rossum Date: Thu, 10 Aug 1995 19:40:39 +0000 (+0000) Subject: fix reload use of __filename__ X-Git-Tag: v1.3b1~64 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=18596003572b715d57ecb6d357cebc4257c0bb31;p=thirdparty%2FPython%2Fcpython.git fix reload use of __filename__ --- diff --git a/Lib/rexec.py b/Lib/rexec.py index f33041a7c37e..9b23b3c601a5 100644 --- a/Lib/rexec.py +++ b/Lib/rexec.py @@ -102,7 +102,8 @@ class RModuleImporter(ihooks.ModuleImporter): def reload(self, module, path=None): if path is None and hasattr(module, '__filename__'): - path = [module.__filename__] + head, tail = os.path.split(module.__filename__) + path = [head] return ihooks.ModuleImporter.reload(self, module, path)