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)
| 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 |
nothing calls this directly
no test coverage detected