From 8307d8852df2da4d8be151aa4bc05612c458e4a1 Mon Sep 17 00:00:00 2001 From: rdb Date: Sat, 29 Oct 2011 10:22:20 +0000 Subject: [PATCH] this might fix it --- direct/src/p3d/Packager.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/direct/src/p3d/Packager.py b/direct/src/p3d/Packager.py index 2c57167c51..6dfc91fb76 100644 --- a/direct/src/p3d/Packager.py +++ b/direct/src/p3d/Packager.py @@ -1083,6 +1083,7 @@ class Packager: # Alter the dependencies to have a relative path rather than absolute for filename in framework_deps: loc = self.__locateFrameworkLibrary(filename) + print "DEBUG: loc", loc if loc == file.filename: os.system('install_name_tool -id "%s" "%s"' % (os.path.basename(filename), file.filename.toOsSpecific())) elif loc.toOsSpecific().startswith("/System/"): @@ -1151,10 +1152,6 @@ class Packager: # aren't commonly on the library path either. filename = self.__locateFrameworkLibrary(filename) filename.setBinary() - - # Let's skip system frameworks - if filename.toOsSpecific().startswith("/System/"): - continue else: # It's just a normal library - find it on the path. filename = Filename.fromOsSpecific(filename) @@ -1170,6 +1167,11 @@ class Packager: if f2.exists(): filename = f2 + # Skip libraries and frameworks in system directory + if filename.toOsSpecific().startswith("/System/"): + print "DEBUG: excluding", filename + continue + newName = Filename(file.dependencyDir, filename.getBasename()) self.addFile(filename, newName = newName.cStr(), explicit = False, executable = True)