Tin mới
importlib.machinery.SourceFileLoader
The module’s __spec__ and __loader__ will be set, if not set already, with the appropriate values. The spec’s loader will be set to the module’s __loader__ (if set) and to an instance of SourceFileLoader otherwise.
The module’s __spec__ and __loader__ will be set, if not set already, with the appropriate values. The spec’s loader will be set to the module’s __loader__ (if set) and to an instance of SourceFileLoader otherwise.
Changed in version 3.3: Uses imp.source_from_cache() in calculating the source path if only the bytecode path is provided.