VirtualBox

Changeset 103076 in vbox for trunk


Ignore:
Timestamp:
Jan 26, 2024 8:09:34 AM (8 months ago)
Author:
vboxsync
Message:

Validation Kit: Added the new path layout to sys.path for finding the vboxapi module, log the Python version if the module could not be found. bugref:10579

File:
1 edited

Legend:

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

    r103045 r103076  
    13941394        if self.oBuild.sSdkPath is not None:
    13951395            sys.path.insert(0, os.path.join(self.oBuild.sSdkPath, 'installer'))
     1396            sys.path.insert(0, os.path.join(self.oBuild.sSdkPath, 'installer', 'python', 'vboxapi', 'src')) # For >= VBox 7.1
    13961397            sys.path.insert(1, os.path.join(self.oBuild.sSdkPath, 'install')); # stupid stupid windows installer (VBox < 7.1)!
    13971398            sys.path.insert(2, os.path.join(self.oBuild.sSdkPath, 'bindings', 'xpcom', 'python'))
     
    14021403            from vboxapi import VirtualBoxManager;  # pylint: disable=import-error
    14031404        except:
    1404             reporter.logXcpt('Error importing vboxapi');
     1405            reporter.logXcpt('Error importing vboxapi (Python %s)' % (sys.version,));
    14051406            return False;
    14061407
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