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

Method import_path

common.py:819–824  ·  view source on GitHub ↗

https://stackoverflow.com/questions/2601047/import-a-python-module-without-the-py-extension https://stackoverflow.com/questions/31773310/what-does-the-first-argument-of-the-imp-load-source-method-do

(self, basename)

Source from the content-addressed store, hash-verified

817 return _json
818
819 def import_path(self, basename):
820 '''
821 https://stackoverflow.com/questions/2601047/import-a-python-module-without-the-py-extension
822 https://stackoverflow.com/questions/31773310/what-does-the-first-argument-of-the-imp-load-source-method-do
823 '''
824 return imp.load_source(basename.replace('-', '_'), os.path.join(self.env['root_dir'], basename))
825
826 def import_path_main(self, path):
827 '''

Callers 1

import_path_mainMethod · 0.95

Calls 1

joinMethod · 0.80

Tested by

no test coverage detected