Commits

Ronald Oussoren committed 56ddcde

Fix two issues that make it impossible to import BridgeSupport files
outside of framworks. based on fix provided by Scott Herzinger

Comments (0)

Files changed (1)

pyobjc-core/Lib/objc/_bridgesupport.py

 _gBridgeSupportDirectories = (
         '/System/Library/BridgeSupport',
         '/Library/BridgeSupport',
-        '~/Library/BridgeSupport',
+        os.path.expanduser('~/Library/BridgeSupport'),
     )
 
 for method in ('alloc', 'copy', 'copyWithZone:', 'mutableCopy', 'mutableCopyWithZone:'):
             data = open(path, 'rb').read()
             doc = ET.fromstring(data)
 
-            dylib_path = os.path.join(dn, framworkName + '.dylib')
+            dylib_path = os.path.join(dn, frameworkName + '.dylib')
             if os.path.exists(dylib_path):
                 _parseBridgeSupport(data, globals, frameworkName, dylib_path)
             else: