From a530ae482cc8008f76ff9824c5d18400b182324e Mon Sep 17 00:00:00 2001 From: Henk-Jaap Wagenaar Date: Fri, 1 Dec 2017 23:15:16 +0000 Subject: [PATCH] bpo-32188: do not call os.path.realpath in ImpImporter.find_module --- Lib/pkgutil.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/pkgutil.py b/Lib/pkgutil.py index 9180eaed84dfd6..7750992904c711 100644 --- a/Lib/pkgutil.py +++ b/Lib/pkgutil.py @@ -217,7 +217,7 @@ def find_module(self, fullname, path=None): if self.path is None: path = None else: - path = [os.path.realpath(self.path)] + path = [self.path] try: file, filename, etc = imp.find_module(subname, path) except ImportError: