make sure the path ends in a slash in reload()
This commit is contained in:
parent
fe4254eb08
commit
1035a892a1
@ -103,7 +103,7 @@ class RModuleImporter(ihooks.ModuleImporter):
|
|||||||
def reload(self, module, path=None):
|
def reload(self, module, path=None):
|
||||||
if path is None and hasattr(module, '__filename__'):
|
if path is None and hasattr(module, '__filename__'):
|
||||||
head, tail = os.path.split(module.__filename__)
|
head, tail = os.path.split(module.__filename__)
|
||||||
path = [head]
|
path = [os.path.join(head, '')]
|
||||||
return ihooks.ModuleImporter.reload(self, module, path)
|
return ihooks.ModuleImporter.reload(self, module, path)
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user