MCPcopy Index your code
hub / github.com/cirosantilli/linux-kernel-module-cheat / import_path_main

Method import_path_main

common.py:826–832  ·  view source on GitHub ↗

Import an object of the Main class of a given file. By convention, we call the main object of all our CLI scripts as Main.

(self, path)

Source from the content-addressed store, hash-verified

824 return imp.load_source(basename.replace('-', '_'), os.path.join(self.env['root_dir'], basename))
825
826 def import_path_main(self, path):
827 '''
828 Import an object of the Main class of a given file.
829
830 By convention, we call the main object of all our CLI scripts as Main.
831 '''
832 return self.import_path(path).Main()
833
834 def is_arch_supported(self, arch):
835 return self.supported_archs is None or arch in self.supported_archs

Callers

nothing calls this directly

Calls 1

import_pathMethod · 0.95

Tested by

no test coverage detected