Skip to content

Commit

Permalink
Use dotted name for framework name.
Browse files Browse the repository at this point in the history
  • Loading branch information
freakboy3742 committed Oct 12, 2023
1 parent 0e5842a commit 936c841
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Lib/importlib/_bootstrap_external.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 936c841

Please sign in to comment.