LSSTApplications
10.0-2-g4f67435,11.0.rc2+1,11.0.rc2+12,11.0.rc2+3,11.0.rc2+4,11.0.rc2+5,11.0.rc2+6,11.0.rc2+7,11.0.rc2+8
LSSTDataManagementBasePackage
|
Classes | |
class | Log |
A dead-simple logger for all messages. More... | |
Functions | |
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... | |
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 85 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 52 of file utils.py.