From: Guido van Rossum Date: Fri, 11 Aug 1995 13:56:04 +0000 (+0000) Subject: make sure the path ends in a slash in reload() X-Git-Tag: v1.3b1~56 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1035a892a140a7dc7b59f016230db02b490885d0;p=thirdparty%2FPython%2Fcpython.git make sure the path ends in a slash in reload() --- diff --git a/Lib/rexec.py b/Lib/rexec.py index 9b23b3c601a5..1dc991773ff7 100644 --- a/Lib/rexec.py +++ b/Lib/rexec.py @@ -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)