VirtualBox

Ignore:
Timestamp:
Nov 3, 2017 1:37:01 PM (7 years ago)
Author:
vboxsync
Message:

testdriver/vbox.py: stupid stupid windows installer putting vboxapi under sdk/install instead of sdk/install. sigh

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/testdriver/vbox.py

    r69561 r69562  
    12741274        if self.oBuild.sSdkPath is not None:
    12751275            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'))
    12771278        os.environ['VBOX_PROGRAM_PATH'] = self.oBuild.sInstallPath;
    12781279        reporter.log("sys.path: %s" % (sys.path));
    12791280
    12801281        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:
    12811289            # pylint: disable=import-error
    1282             from vboxapi import VirtualBoxManager
    12831290            if self.sHost == 'win':
    12841291                from pythoncom import com_error as NativeComExceptionClass  # pylint: disable=E0611
     
    12891296            # pylint: enable=import-error
    12901297        except:
    1291             traceback.print_exc();
     1298            reporter.logXcpt('Error importing (XP)COM related stuff for exception hacks and errors');
    12921299            return False;
    1293 
    12941300        __deployExceptionHacks__(NativeComExceptionClass)
    12951301        ComError.copyErrors(NativeComErrorClass);
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette