summaryrefslogtreecommitdiffstats
path: root/Lib/rexec.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1995-08-10 19:40:39 (GMT)
committerGuido van Rossum <guido@python.org>1995-08-10 19:40:39 (GMT)
commit18596003572b715d57ecb6d357cebc4257c0bb31 (patch)
tree3b9d1ec04e178b3b86be02b1381b65e555342d3e /Lib/rexec.py
parentba3e46b9ce8c02c0215cc45bffa36b8500351f5b (diff)
downloadcpython-18596003572b715d57ecb6d357cebc4257c0bb31.zip
cpython-18596003572b715d57ecb6d357cebc4257c0bb31.tar.gz
cpython-18596003572b715d57ecb6d357cebc4257c0bb31.tar.bz2
fix reload use of __filename__
Diffstat (limited to 'Lib/rexec.py')
-rw-r--r--Lib/rexec.py3
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)