Changeset 54684 in vbox for trunk/src/VBox/Main/glue
- Timestamp:
- Mar 7, 2015 10:22:27 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/glue/vboxapi.py
r54126 r54684 94 94 # Globals, environment and sys.path changes. 95 95 # 96 import platform; 96 97 VBoxBinDir = os.environ.get("VBOX_PROGRAM_PATH", None) 97 98 VBoxSdkDir = os.environ.get("VBOX_SDK_PATH", None) 98 99 99 100 if VBoxBinDir is None: 100 # Will be set by the installer 101 VBoxBinDir = "%VBOX_INSTALL_PATH%" 101 if platform.system() == 'Darwin': 102 VBoxBinDir = '/Applications/VirtualBox.app/Contents/MacOS' 103 else: # Will be set by the installer 104 VBoxBinDir = "%VBOX_INSTALL_PATH%" 102 105 else: 103 106 VBoxBinDir = os.path.abspath(VBoxBinDir) 104 107 105 108 if VBoxSdkDir is None: 106 # Will be set by the installer 107 VBoxSdkDir = "%VBOX_SDK_PATH%" 109 if platform.system() == 'Darwin': 110 VBoxSdkDir = '/Applications/VirtualBox.app/Contents/MacOS/sdk' 111 else: # Will be set by the installer 112 VBoxSdkDir = "%VBOX_SDK_PATH%" 108 113 else: 109 114 VBoxSdkDir = os.path.abspath(VBoxSdkDir)
Note:
See TracChangeset
for help on using the changeset viewer.