|
LSSTApplications
11.0-13-gbb96280,12.1.rc1,12.1.rc1+1,12.1.rc1+2,12.1.rc1+5,12.1.rc1+8,12.1.rc1-1-g06d7636+1,12.1.rc1-1-g253890b+5,12.1.rc1-1-g3d31b68+7,12.1.rc1-1-g3db6b75+1,12.1.rc1-1-g5c1385a+3,12.1.rc1-1-g83b2247,12.1.rc1-1-g90cb4cf+6,12.1.rc1-1-g91da24b+3,12.1.rc1-2-g3521f8a,12.1.rc1-2-g39433dd+4,12.1.rc1-2-g486411b+2,12.1.rc1-2-g4c2be76,12.1.rc1-2-gc9c0491,12.1.rc1-2-gda2cd4f+6,12.1.rc1-3-g3391c73+2,12.1.rc1-3-g8c1bd6c+1,12.1.rc1-3-gcf4b6cb+2,12.1.rc1-4-g057223e+1,12.1.rc1-4-g19ed13b+2,12.1.rc1-4-g30492a7
LSSTDataManagementBasePackage
|
Classes | |
| class | Log |
| A dead-simple logger for all messages. More... | |
Functions | |
| def | _has_OSX_SIP |
| Internal function indicating that the OS has System Integrity Protection. More... | |
| def | libraryPathPassThrough |
| Returns name of library path environment variable to be passed through or else returns None if no pass through is required on this platform. More... | |
| def | whichPython |
| Returns the full path to the Python executable as determined from the PATH. More... | |
| def | needShebangRewrite |
| Returns True if the shebang lines of executables should be rewritten. More... | |
| def | libraryLoaderEnvironment |
| Returns library loader path environment string to be prepended to external commands Will be "" if nothing is required. More... | |
| def | runExternal |
| Safe wrapper for running external programs, reading stdout, and sanitizing error messages. More... | |
| def | memberOf |
| A Python decorator that injects functions into a class. More... | |
Variables | |
| _pythonPath = None | |
|
private |
Internal function indicating that the OS has System Integrity Protection.
Definition at line 55 of file utils.py.
| def lsst.sconsUtils.utils.libraryLoaderEnvironment | ( | ) |
Returns library loader path environment string to be prepended to external commands Will be "" if nothing is required.
Definition at line 105 of file utils.py.
| def lsst.sconsUtils.utils.libraryPathPassThrough | ( | ) |
Returns name of library path environment variable to be passed through or else returns None if no pass through is required on this platform.
Definition at line 70 of file utils.py.
| def lsst.sconsUtils.utils.memberOf | ( | cls, | |
name = None |
|||
| ) |
A Python decorator that injects functions into a class.
For example:
...will cause test_method to appear as as if it were defined within test_class.
The function or method will still be added to the module scope as well, replacing any existing module-scope function with that name; this appears to be unavoidable.
Definition at line 157 of file utils.py.
| def lsst.sconsUtils.utils.needShebangRewrite | ( | ) |
Returns True if the shebang lines of executables should be rewritten.
Definition at line 97 of file utils.py.
| def lsst.sconsUtils.utils.runExternal | ( | cmd, | |
fatal = False, |
|||
msg = None |
|||
| ) |
Safe wrapper for running external programs, reading stdout, and sanitizing error messages.
Note that the entire program output is returned, not just a single line.
Definition at line 123 of file utils.py.
| def lsst.sconsUtils.utils.whichPython | ( | ) |
Returns the full path to the Python executable as determined from the PATH.
Does not return the full path of the Python running SCons. Caches result and assumes the PATH does not change between calls. Runs the "python" command and asks where it is rather than scanning the PATH.
Definition at line 86 of file utils.py.
1.8.5