Commits

Ronald Oussoren  committed 3a18d25

Try harder to find constants, without this patch the CFNetwork wrapper tests don't pass.

  • Participants
  • Parent commits 2a11f64
  • Branches core-cleanup

Comments (0)

Files changed (1)

File pyobjc-core/Modules/objc/bundle-variables.m

         value = CFBundleGetDataPointerForName(cfBundle,
                 (CFStringRef)name);
         if (value == NULL) {
+            value = dlsym(RTLD_DEFAULT, [(NSString*)name UTF8String]);
+        }
+        if (value == NULL) {
             if (!skip_undefined) {
                 PyErr_SetString(PyObjCExc_Error,
                     "cannot find a variable");