commit | 1035a892a140a7dc7b59f016230db02b490885d0 | [log] [tgz] |
---|---|---|
author | Guido van Rossum <guido@python.org> | Fri Aug 11 13:56:04 1995 +0000 |
committer | Guido van Rossum <guido@python.org> | Fri Aug 11 13:56:04 1995 +0000 |
tree | 4b9e64e61c717a930a803c3dc235babc6b053fe9 | |
parent | fe4254eb08eb1bc15b2fd46b517119cf9498046a [diff] |
make sure the path ends in a slash in reload()
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 @@ 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)