- Timestamp:
- Aug 3, 2016 9:51:47 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/glue/vboxapi.py
r61376 r62900 464 464 win32com.client.gencache.EnsureDispatch('VirtualBox.Session') 465 465 win32com.client.gencache.EnsureDispatch('VirtualBox.VirtualBox') 466 win32com.client.gencache.EnsureDispatch('VirtualBox.VirtualBoxClient') 466 467 467 468 self.oIntCv = threading.Condition() … … 507 508 import win32com 508 509 from win32com.client import Dispatch 509 return win32com.client.Dispatch("VirtualBox.VirtualBox") 510 client = win32com.client.Dispatch("VirtualBox.VirtualBoxClient") 511 return client.virtualBox 510 512 511 513 def getType(self): … … 738 740 def getVirtualBox(self): 739 741 import xpcom.components 740 return xpcom.components.classes["@virtualbox.org/VirtualBox;1"].createInstance() 742 client = xpcom.components.classes["@virtualbox.org/VirtualBoxClient;1"].createInstance() 743 return client.virtualBox 741 744 742 745 def getType(self):
Note:
See TracChangeset
for help on using the changeset viewer.