(filename)
return module
Import a module given a full path to the file.
Import a module given a full path to the file.
Import a module given a full path to the file .
def import_module(filename):
    """Import a module given a full path to the file."""
    spec = importlib.util.spec_from_file_location('doc_filter', filename)
    module = importlib.util.module_from_spec(spec)
    spec.loader.exec_module(module)
    return module
def import_module ( filename ) : spec = importlib . util . spec_from_file_location ( 'doc_filter' , filename ) module = importlib . util . module_from_spec ( spec ) spec . loader . exec_module ( module ) return module