1
0
mirror of https://github.com/odrling/Aegisub synced 2025-04-11 22:56:02 +02:00

osx-fix-libs: fix relative symlinks with same name

This commit is contained in:
odrling 2022-03-18 15:33:56 +01:00
parent fad58256fe
commit e5ba949fb3
No known key found for this signature in database
GPG Key ID: A0145F975F9F8B75

View File

@ -103,6 +103,10 @@ def collectlibs(lib, masterlist, targetdir):
if os.path.islink(check):
link_dst = os.readlink(check)
if os.path.basename(check) == os.path.basename(link_dst):
check = os.path.join(os.path.dirname(check), link_dst)
continue
try:
os.symlink(link_dst, target)
except FileExistsError: