Changeset 48300 in vbox for trunk/src/VBox/Frontends/VBoxShell
- Timestamp:
- Sep 5, 2013 11:21:57 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxShell/vboxshell.py
r48285 r48300 3537 3537 3538 3538 3539 vpp= os.environ.get("VBOX_PROGRAM_PATH")3540 if vppis None:3539 sPath = os.environ.get("VBOX_PROGRAM_PATH") 3540 if sPath is None: 3541 3541 for sCurLoc in asLocations: 3542 print "checking '%s'..." % (sCurLoc,)3543 3544 3542 if os.path.isfile(os.path.join(sCurLoc, "VirtualBox")) \ 3545 3543 or os.path.isfile(os.path.join(sCurLoc, "VirtualBox.exe")): 3546 3544 print "Autodetected VBOX_PROGRAM_PATH as", sCurLoc 3547 3545 os.environ["VBOX_PROGRAM_PATH"] = sCurLoc 3548 sys.path.append(os.path.join(sCurLoc, "sdk", "installer")) 3549 3550 vsp = os.environ.get("VBOX_SDK_PATH") 3551 if vsp is None: 3546 sPath = sCurLoc 3547 break; 3548 if sPath: 3549 sys.path.append(os.path.join(sPath, "sdk", "installer")) 3550 3551 sPath = os.environ.get("VBOX_SDK_PATH") 3552 if sPath is None: 3552 3553 for sCurLoc in asLocations: 3553 3554 if os.path.isfile(os.path.join(sCurLoc, "sdk", "bindings", "VirtualBox.xidl")): 3554 3555 print "Autodetected VBOX_SDK_PATH as", sCurLoc 3555 3556 os.environ["VBOX_SDK_PATH"] = sCurLoc 3556 sTmp = os.path.join(sCurLoc, 'sdk', 'bindings', 'xpcom', 'python'); 3557 if os.path.isdir(sTmp): 3558 sys.path.append(sTmp); 3559 del sTmp; 3560 del vsp, vpp, asLocations; 3557 sPath = sCurLoc; 3558 break; 3559 if sPath: 3560 sTmp = os.path.join(sCurLoc, 'sdk', 'bindings', 'xpcom', 'python'); 3561 if os.path.isdir(sTmp): 3562 sys.path.append(sTmp); 3563 del sTmp; 3564 del sPath, asLocations; 3561 3565 3562 3566
Note:
See TracChangeset
for help on using the changeset viewer.