Changeset 11905 in vbox
- Timestamp:
- Sep 1, 2008 9:45:45 AM (16 years ago)
- Location:
- trunk/src/libs/xpcom18a4
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/libs/xpcom18a4/Makefile.kmk
r11892 r11905 1326 1326 VBoxPython_DEFS = _IMPL_NS_COM _IMPL_NS_BASE EXPORT_XPTI_API EXPORT_XPT_API \ 1327 1327 VBOX_PYXPCOM VBOX_WITH_XPCOM 1328 VBoxPython_NAME.darwin = VBoxPython2_3 1328 1329 VBoxPython_INCS = \ 1329 1330 python/src \ -
trunk/src/libs/xpcom18a4/python/vboxxpcom.py
r11852 r11905 25 25 #cglue = __import__('VBoxPython') 26 26 if platform.system() == 'Darwin': 27 # TODO: This needs to be changed if it is supposed to work with OSE as well. 27 # On Darwin (aka Mac OS X) we know exactly where things are in a normal 28 # VirtualBox installation. Also, there are two versions of python there 29 # (2.3.x and 2.5.x) depending on whether the os is striped or spotty, so 30 # we have to choose the right module to load. 31 # 32 # XXX: This needs to be adjusted for OSE builds. A more general solution would 33 # be to to sed the file during install and inject the VBOX_PATH_APP_PRIVATE_ARCH 34 # and VBOX_PATH_SHARED_LIBS when these are set. 28 35 saved_sys_path = sys.path; 29 36 sys.path = [ '/Applications/VirtualBox.app/Contents/MacOS', ] + saved_sys_path 30 cglue = __import__('VBoxPython') 37 mod = 'VBoxPython' + str(sys.version_info[0]) + '_' + str(sys.version_info[1]) 38 cglue = __import__(mod) 31 39 sys.path = saved_sys_path 32 40 else: … … 34 42 sys.modules['xpcom._xpcom'] = cglue 35 43 xpcom._xpcom = cglue 44
Note:
See TracChangeset
for help on using the changeset viewer.