]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
make sure the path ends in a slash in reload()
authorGuido van Rossum <guido@python.org>
Fri, 11 Aug 1995 13:56:04 +0000 (13:56 +0000)
committerGuido van Rossum <guido@python.org>
Fri, 11 Aug 1995 13:56:04 +0000 (13:56 +0000)
Lib/rexec.py

index 9b23b3c601a5e4c0c0e3f77f88594d901e3544cd..1dc991773ff78312a6d0c090e532c4c50f587c5a 100644 (file)
@@ -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)