|
lsst.pex.config
14.0-2-g319577b+7
|
Public Member Functions | |
| def | __init__ (self) |
| def | __enter__ (self) |
| def | __exit__ (self, args) |
| def | uninstall (self) |
| def | find_module (self, fullname, path=None) |
| def | getModules (self) |
Public Attributes | |
| origMetaPath | |
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 | ) |
| 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 | ) |
1.8.13