PyDocs

Nav

Importing Modules

SourceFileLoader

importlib.machinery

class · Added in 3.3 (source)
  • SourceFileLoader(fullname, path)
Concrete implementation of SourceLoader using the file system.
Changed in 3.15
  • 3.15: Removed the load_module() method.
Members of SourceFileLoader

i

is_package
Concrete implementation of InspectLoader.is_package by checking if the path returned by get_filename has a filename of '__init__.py'.

n

name
The name of the module that this loader will handle.

p

path
The path to the source file.
path_stats
Return the metadata for the path.

s

set_data
Write bytes data to a file.
0 Examples
No examples for importlib.machinery/SourceFileLoader.
See Also
No see-alsos for importlib.machinery/SourceFileLoader
0 Notes
No notes for SourceFileLoader