VirtualBox

Changeset 34082 in vbox


Ignore:
Timestamp:
Nov 15, 2010 5:19:22 PM (14 years ago)
Author:
vboxsync
Message:

Frontends/VBoxShell: extend autopath feature to the SDK directory as well

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxShell/vboxshell.py

    r33550 r34082  
    33013301            vpp = cwd
    33023302            print "Autodetected VBOX_PROGRAM_PATH as",vpp
    3303             os.environ["VBOX_PROGRAM_PATH"] = cwd
     3303            os.environ["VBOX_PROGRAM_PATH"] = vpp
    33043304            sys.path.append(os.path.join(vpp, "sdk", "installer"))
     3305        vsp = os.environ.get("VBOX_SDK_PATH")
     3306        if vsp is None and os.path.isfile(os.path.join(cwd, "sdk", "bindings", "VirtualBox.xidl")) :
     3307            vsp = os.path.join(cwd, "sdk")
     3308        if vsp is None and os.path.isfile(os.path.join(vpp, "sdk", "bindings", "VirtualBox.xidl")) :
     3309            vsp = os.path.join(vpp, "sdk")
     3310        if vsp is not None :
     3311            print "Autodetected VBOX_SDK_PATH as",vsp
     3312            os.environ["VBOX_SDK_PATH"] = vsp
    33053313
    33063314    from vboxapi import VirtualBoxManager
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