Burgerlib Python
|
Package that contains executable locators. More...
Functions | |
def | where_is_xcode (xcode_version=None) |
Locate xcodebuild for a specific version of XCode. More... | |
def | _get_codeblocks_registry_path () |
Locate codeblocks path using the Window Registry. More... | |
def | where_is_codeblocks (verbose=False, refresh=False, path=None) |
Return the location of CodeBlocks's executable. More... | |
def | where_is_watcom (command=None, verbose=False, refresh=False, path=None) |
Return the location of Watcom's executables. More... | |
def | _get_doxygen_registry_path () |
Locate doxygen path using the Window Registry. More... | |
def | where_is_doxygen (verbose=False, refresh=False, path=None) |
Return the location of Doxygen's executable. More... | |
def | where_is_visual_studio (vs_version) |
Locate devenv.com for a specific version of Visual Studio. More... | |
Variables | |
_CODEBLOCKS_PATH | |
Cached location of CodeBlocks. More... | |
_WATCOM_PATH | |
Cached location of Watcom. More... | |
_DOXYGEN_PATH | |
Cached location of doxygen. More... | |
tuple | _VS_VARIANTS |
Visual Studio variants in the order of search. | |
Package that contains executable locators.
Functions that will scan for executables so it's not necessary for applications to either be on the PATH. They favor environement variables, and then system registry before searching the path and then looking at the usual hard coded locations
|
private |
Locate codeblocks path using the Window Registry.
Private function only called on Windows hosts to query the registry for the location of Codeblocks.
Check HKCU\SOFTWARE\CodeBlocks\Path for the base directory of CodeBlocks on Windows.
|
private |
Locate doxygen path using the Window Registry.
Private function only called on Windows hosts to query the registry for the location of Doxygen.
Check HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\ doxygen_is1 for the base directory of Doxygen on Windows.
def burger.locators.where_is_codeblocks | ( | verbose = False , |
|
refresh = False , |
|||
path = None |
|||
) |
Return the location of CodeBlocks's executable.
Look for an environment variable CODEBLOCKS and determine if the executable resides there, if so, return the string to the path
If running on a MacOSX client, look in the Applications folder for a copy of CodeBlocks.app and return the pathname to the copy of CodeBlocks that resides within
PATH is then searched for CodeBlocks, and if it's not found, None is returned.
verbose | If True, print a message if CodeBlocks was not found |
refresh | If True, reset the cache and force a reload. |
path | Path to CodeBlocks to place in the cache |
def burger.locators.where_is_doxygen | ( | verbose = False , |
|
refresh = False , |
|||
path = None |
|||
) |
Return the location of Doxygen's executable.
Look for an environment variable DOXYGEN and determine if the executable resides there. Otherwise traverse the path to see if doxygen is present. If that fails, look in the registry, or the usual locations like "Program Files\\doxygen" on Windows.
If running on a MacOSX client, look in the Applications folder for a copy of Doxygen.app and return the pathname to the copy of doxygen that resides within.
verbose | If True, print a message if doxygen was not found |
refresh | If True, reset the cache and force a reload. |
path | Path to doxygen to place in the cache |
def burger.locators.where_is_visual_studio | ( | vs_version | ) |
Locate devenv.com for a specific version of Visual Studio.
Given a specific version by year, check for the appropriate environment variable that contains the path to the executable of the IDE
Examples
vs_version | Version year as number |
def burger.locators.where_is_watcom | ( | command = None , |
|
verbose = False , |
|||
refresh = False , |
|||
path = None |
|||
) |
Return the location of Watcom's executables.
Look for an environment variable WATCOM and determine if the executable resides there, if so, return the string to the path
In Windows, the boot drive is checked for a WATCOM folder and if found, that folder name is returned. If all checks failed, None is returned.
command | Watcom program to find. |
verbose | If True, print a message if watcom was not found |
refresh | If True, reset the cache and force a reload. |
path | Path to watcom to place in the cache |
def burger.locators.where_is_xcode | ( | xcode_version = None | ) |
Locate xcodebuild for a specific version of XCode.
Given a specific version by version, scan the locations that the IDE would be found.
Examples
xcode_version | Version number |
|
private |
Cached location of CodeBlocks.
|
private |
Cached location of doxygen.
|
private |
Cached location of Watcom.