all repos — mgba @ 17ee9d55e8a5b9c3457092df7d7e1e7ad9959a17

mGBA Game Boy Advance Emulator

Tools: Clean up deploy-mac script symlink resolution

Change suggested in Dolphin PR #2536
Jeffrey Pfau jeffrey@endrift.com
Sat, 06 Jun 2015 12:43:01 -0700
commit

17ee9d55e8a5b9c3457092df7d7e1e7ad9959a17

parent

0c6c6fdcbc4fa5d81b1d5b07028bab570108f017

1 files changed, 2 insertions(+), 9 deletions(-)

jump to
M tools/deploy-mac.pytools/deploy-mac.py

@@ -69,15 +69,8 @@ if split[0] == '@executable_path':

split[:1] = execPath if split[0] == '/' and not os.access(joinPath(split), os.F_OK): split[:1] = root - try: - oldPath = joinPath(split) - while True: - linkPath = os.readlink(os.path.abspath(oldPath)) - oldPath = os.path.join(os.path.dirname(oldPath), linkPath) - except OSError as e: - if e.errno != errno.EINVAL: - raise - split = splitPath(oldPath) + oldPath = os.path.realpath(joinPath(split)) + split = splitPath(oldPath) isFramework = False if not split[-1].endswith('.dylib'): isFramework = True