Skip to content

Commit

Permalink
Merge pull request #35 from kivy/dl_fix
Browse files Browse the repository at this point in the history
Add fallback path for Foundation lookup
  • Loading branch information
Zen-CODE committed Oct 28, 2016
2 parents 528e89e + 229ee65 commit 234e837
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions pyobjus/_runtime.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,14 @@ static void pyobjc_internal_init() {
static void *foundation = NULL;
if ( foundation == NULL ) {
foundation = dlopen(
"/Groups/System/Library/Frameworks/Foundation.framework/Versions/Current/Foundation", RTLD_LAZY);
"/System/Library/Frameworks/Foundation.framework/Versions/Current/Foundation", RTLD_LAZY);
if ( foundation == NULL ) {
printf("Got dlopen error on Foundation\n");
return;
foundation = dlopen(
"/Groups/System/Library/Frameworks/Foundation.framework/Versions/Current/Foundation", RTLD_LAZY);
if ( foundation == NULL ) {
printf("Got dlopen error on Foundation\n");
return;
}
}
}
}
Expand Down

0 comments on commit 234e837

Please sign in to comment.