diff options
author | Guido van Rossum <guido@python.org> | 1995-08-11 13:56:04 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1995-08-11 13:56:04 (GMT) |
commit | 1035a892a140a7dc7b59f016230db02b490885d0 (patch) | |
tree | 4b9e64e61c717a930a803c3dc235babc6b053fe9 /Lib | |
parent | fe4254eb08eb1bc15b2fd46b517119cf9498046a (diff) | |
download | cpython-1035a892a140a7dc7b59f016230db02b490885d0.zip cpython-1035a892a140a7dc7b59f016230db02b490885d0.tar.gz cpython-1035a892a140a7dc7b59f016230db02b490885d0.tar.bz2 |
make sure the path ends in a slash in reload()
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/rexec.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/rexec.py b/Lib/rexec.py index 9b23b3c..1dc9917 100644 --- a/Lib/rexec.py +++ b/Lib/rexec.py @@ -103,7 +103,7 @@ class RModuleImporter(ihooks.ModuleImporter): def reload(self, module, path=None): if path is None and hasattr(module, '__filename__'): head, tail = os.path.split(module.__filename__) - path = [head] + path = [os.path.join(head, '')] return ihooks.ModuleImporter.reload(self, module, path) |