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 20, 2023
1 parent f87788c commit e2e2db1
Show file tree
Hide file tree
Showing 2 changed files with 242 additions and 245 deletions.
3 changes: 1 addition & 2 deletions Lib/importlib/_bootstrap_external.py
Original file line number Diff line number Diff line change
Expand Up @@ -1642,10 +1642,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
Loading

0 comments on commit e2e2db1

Please sign in to comment.