diff options
author | Guido van Rossum <guido@python.org> | 1995-08-10 19:40:39 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1995-08-10 19:40:39 (GMT) |
commit | 18596003572b715d57ecb6d357cebc4257c0bb31 (patch) | |
tree | 3b9d1ec04e178b3b86be02b1381b65e555342d3e /Lib | |
parent | ba3e46b9ce8c02c0215cc45bffa36b8500351f5b (diff) | |
download | cpython-18596003572b715d57ecb6d357cebc4257c0bb31.zip cpython-18596003572b715d57ecb6d357cebc4257c0bb31.tar.gz cpython-18596003572b715d57ecb6d357cebc4257c0bb31.tar.bz2 |
fix reload use of __filename__
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/rexec.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/rexec.py b/Lib/rexec.py index f33041a..9b23b3c 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) |