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:
parent
fad58256fe
commit
e5ba949fb3
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user