LSSTApplications
10.0+286,10.0+36,10.0+46,10.0-2-g4f67435,10.1+152,10.1+37,11.0,11.0+1,11.0-1-g47edd16,11.0-1-g60db491,11.0-1-g7418c06,11.0-2-g04d2804,11.0-2-g68503cd,11.0-2-g818369d,11.0-2-gb8b8ce7
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.