Commit 1035a892 authored by Guido van Rossum's avatar Guido van Rossum

make sure the path ends in a slash in reload()

parent fe4254eb
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment