Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1035a89

Browse files
committed
make sure the path ends in a slash in reload()
1 parent fe4254e commit 1035a89

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/rexec.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ class RModuleImporter(ihooks.ModuleImporter):
103103
def reload(self, module, path=None):
104104
if path is None and hasattr(module, '__filename__'):
105105
head, tail = os.path.split(module.__filename__)
106-
path = [head]
106+
path = [os.path.join(head, '')]
107107
return ihooks.ModuleImporter.reload(self, module, path)
108108

109109

0 commit comments

Comments
 (0)