VirtualBox

Changeset 54684 in vbox for trunk/src/VBox/Main/glue


Ignore:
Timestamp:
Mar 7, 2015 10:22:27 PM (10 years ago)
Author:
vboxsync
Message:

vboxapi.py,vboxapisetup.py: Don't patch stuff in the bundle, breaks signing.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/glue/vboxapi.py

    r54126 r54684  
    9494# Globals, environment and sys.path changes.
    9595#
     96import platform;
    9697VBoxBinDir = os.environ.get("VBOX_PROGRAM_PATH", None)
    9798VBoxSdkDir = os.environ.get("VBOX_SDK_PATH", None)
    9899
    99100if 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%"
    102105else:
    103106    VBoxBinDir = os.path.abspath(VBoxBinDir)
    104107
    105108if 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%"
    108113else:
    109114    VBoxSdkDir = os.path.abspath(VBoxSdkDir)
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