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
|
Public Member Functions | |
def | __init__ |
def | __enter__ |
def | __exit__ |
def | uninstall |
def | find_module |
def | getModules |
Public Attributes | |
origMetaPath | |
Private Attributes | |
_modules | |
An Importer (for sys.meta_path) that records which modules are being imported. Objects also act as Context Managers, so you can: with RecordingImporter() as importer: import stuff print "Imported: " + importer.getModules() This ensures it is properly uninstalled when done. This class makes no effort to do any importing itself.
def lsst.pex.config.config.RecordingImporter.__init__ | ( | self | ) |
Create and install the Importer
def lsst.pex.config.config.RecordingImporter.__enter__ | ( | self | ) |
def lsst.pex.config.config.RecordingImporter.__exit__ | ( | self, | |
args | |||
) |
def lsst.pex.config.config.RecordingImporter.find_module | ( | self, | |
fullname, | |||
path = None |
|||
) |
def lsst.pex.config.config.RecordingImporter.getModules | ( | self | ) |
def lsst.pex.config.config.RecordingImporter.uninstall | ( | self | ) |
Uninstall the Importer