Changeset 69562 in vbox for trunk/src/VBox/ValidationKit/testdriver
- Timestamp:
- Nov 3, 2017 1:37:01 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/testdriver/vbox.py
r69561 r69562 1274 1274 if self.oBuild.sSdkPath is not None: 1275 1275 sys.path.insert(0, os.path.join(self.oBuild.sSdkPath, 'installer')) 1276 sys.path.insert(1, os.path.join(self.oBuild.sSdkPath, 'bindings', 'xpcom', 'python')) 1276 sys.path.insert(1, os.path.join(self.oBuild.sSdkPath, 'install')); # stupid stupid windows installer! 1277 sys.path.insert(2, os.path.join(self.oBuild.sSdkPath, 'bindings', 'xpcom', 'python')) 1277 1278 os.environ['VBOX_PROGRAM_PATH'] = self.oBuild.sInstallPath; 1278 1279 reporter.log("sys.path: %s" % (sys.path)); 1279 1280 1280 1281 try: 1282 from vboxapi import VirtualBoxManager # pylint: disable=import-error 1283 except: 1284 reporter.logXcpt('Error importing vboxapi'); 1285 return False; 1286 1287 # Exception and error hacks. 1288 try: 1281 1289 # pylint: disable=import-error 1282 from vboxapi import VirtualBoxManager1283 1290 if self.sHost == 'win': 1284 1291 from pythoncom import com_error as NativeComExceptionClass # pylint: disable=E0611 … … 1289 1296 # pylint: enable=import-error 1290 1297 except: 1291 traceback.print_exc();1298 reporter.logXcpt('Error importing (XP)COM related stuff for exception hacks and errors'); 1292 1299 return False; 1293 1294 1300 __deployExceptionHacks__(NativeComExceptionClass) 1295 1301 ComError.copyErrors(NativeComErrorClass);
Note:
See TracChangeset
for help on using the changeset viewer.