[PyObjC-svn] r1987 - trunk/pyobjc/pyobjc-core/Lib/objc

[email protected]
Newsgroups gmane.comp.python.pyobjc.cvs
Message-ID <[email protected]>
Author: ronaldoussoren
Date: Wed Jan 23 14:51:58 2008
New Revision: 1987

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


Modified:
   trunk/pyobjc/pyobjc-core/Lib/objc/_bridgesupport.py

Modified: trunk/pyobjc/pyobjc-core/Lib/objc/_bridgesupport.py
==============================================================================
--- trunk/pyobjc/pyobjc-core/Lib/objc/_bridgesupport.py	(original)
+++ trunk/pyobjc/pyobjc-core/Lib/objc/_bridgesupport.py	Wed Jan 23 14:51:58 2008
@@ -39,7 +39,7 @@
 _gBridgeSupportDirectories = (
         '/System/Library/BridgeSupport',
         '/Library/BridgeSupport',
-        '~/Library/BridgeSupport',
+        os.path.expanduser('~/Library/BridgeSupport'),
     )
 
 for method in ('alloc', 'copy', 'copyWithZone:', 'mutableCopy', 'mutableCopyWithZone:'):
@@ -156,7 +156,7 @@
             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:

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.