Changeset 20579 in vbox for trunk/src/VBox/Main/glue
- Timestamp:
- Jun 15, 2009 9:16:22 AM (16 years ago)
- svn:sync-xref-src-repo-rev:
- 48588
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/glue/vboxapi.py
r20445 r20579 30 30 os.environ["VBOX_SDK_PATH"] = VboxSdkDir 31 31 sys.path.append(VboxBinDir) 32 # This directory's content goes to the site-wide directory33 #sys.path.append(VboxSdkDir+"/bindings/glue/python")34 32 35 33 from VirtualBox_constants import VirtualBoxReflectionInfo 36 34 37 35 class PlatformMSCOM: 36 # Class to fake access to constants in style of foo.bar.boo 38 37 class ConstantFake: 39 38 def __init__(self, parent, name): … … 72 71 else: 73 72 name = attr 74 print "ask",name75 73 return win32com.client.constants.__getattr__(name) 76 74 except AttributeError,e: … … 95 93 96 94 def __init__(self, params): 97 sys.path.append(VboxSdkDir+'/bindings/mscom/python/')98 95 from win32com import universal 99 96 from win32com.client import gencache, DispatchWithEvents, Dispatch … … 103 100 import win32api 104 101 self.constants = PlatformMSCOM.InterfacesWrapper() 105 #win32com.client.gencache.EnsureDispatch('VirtualBox.Session')106 #win32com.client.gencache.EnsureDispatch('VirtualBox.VirtualBox')107 102 108 103 def getSessionObject(self, vbox): … … 192 187 str += " def __init__(self): pass\n" 193 188 str += "result = "+iface+"Impl()\n" 194 #print str195 189 exec (str,d,d) 196 190 return d['result']
Note:
See TracChangeset
for help on using the changeset viewer.