Skip to content

Commit f1515f0

Browse files
committed
use os.path.dirname to find install_name dir
1 parent 9e7ddbd commit f1515f0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

hooks/conan-center.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1590,8 +1590,8 @@ def _get_non_relocatable_shared_libs(conanfile):
15901590
for dylib_path in glob.glob(os.path.join(libdir, "*.dylib")):
15911591
command = f"otool -D {dylib_path}"
15921592
install_name = check_output_runner(command).strip().split(":")[1].strip()
1593-
base_install_name = install_name.rsplit("/", 1)[0]
1594-
if base_install_name != "@rpath":
1593+
install_name_dir = os.path.dirname(install_name)
1594+
if install_name_dir != "@rpath":
15951595
bad_shared_libs.append(os.path.basename(dylib_path))
15961596

15971597
return bad_shared_libs

0 commit comments

Comments
 (0)