From 936c841c670a0435e1fe31bad8ebfe66a9198bf0 Mon Sep 17 00:00:00 2001 From: Russell Keith-Magee Date: Thu, 12 Oct 2023 11:09:37 +0200 Subject: [PATCH] Use dotted name for framework name. --- Lib/importlib/_bootstrap_external.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Lib/importlib/_bootstrap_external.py b/Lib/importlib/_bootstrap_external.py index 5abec6204706957..0d830eed7b233a5 100644 --- a/Lib/importlib/_bootstrap_external.py +++ b/Lib/importlib/_bootstrap_external.py @@ -1733,10 +1733,9 @@ def __init__(self, path): def find_spec(self, fullname, path, target=None): name = fullname.split(".")[-1] - framework_name = "_".join(fullname.split(".")) for extension in EXTENSION_SUFFIXES: - dylib_file = _path_join(self.frameworks_path, f"{framework_name}.framework", f"{name}{extension}") + dylib_file = _path_join(self.frameworks_path, f"{fullname}.framework", f"{name}{extension}") _bootstrap._verbose_message('Looking for Apple Framework dylib {}', dylib_file) if _path_isfile(dylib_file): loader = AppleFrameworkLoader(fullname, dylib_file, path)