|
Burgerlib Python
|
Package that contains executable locators. More...
Functions | |
| _get_codeblocks_registry_path () | |
| Locate codeblocks path using the Window Registry. | |
| where_is_codeblocks (verbose=False, refresh=False, path=None) | |
| Return the location of CodeBlocks's executable. | |
| where_is_watcom (command=None, verbose=False, refresh=False, path=None) | |
| Return the location of Watcom's executables. | |
| _get_doxygen_registry_path () | |
| Locate doxygen path using the Window Registry. | |
| where_is_doxygen (verbose=False, refresh=False, path=None) | |
| Return the location of Doxygen's executable. | |
| where_is_pdflatex (verbose=False, refresh=False, path=None) | |
| Return the location of the pdflatex executable. | |
| where_is_makeindex (verbose=False, refresh=False, path=None) | |
| Return the location of the makeindex executable. | |
| where_is_visual_studio (vs_version, tool_name=None, cpu=None) | |
| Locate devenv.com for a specific version of Visual Studio. | |
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
|
protected |
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.
|
protected |
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.
| 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 |
| 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 |
| burger.locators.where_is_makeindex | ( | verbose = False, | |
| refresh = False, | |||
| path = None ) |
Return the location of the makeindex executable.
| verbose | If True, print a message if makeindex was not found |
| refresh | If True, reset the cache and force a reload. |
| path | Path to makeindex to place in the cache |
| burger.locators.where_is_pdflatex | ( | verbose = False, | |
| refresh = False, | |||
| path = None ) |
Return the location of the pdflatex executable.
| verbose | If True, print a message if pdflatex was not found |
| refresh | If True, reset the cache and force a reload. |
| path | Path to pdflatex to place in the cache |
| burger.locators.where_is_visual_studio | ( | vs_version, | |
| tool_name = None, | |||
| cpu = None ) |
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 |
| tool_name | Return the path to this tool, None becomes devenv.com |
| cpu | String of the cpu type of the tool requested, x86, x64 |
| 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 |