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)
| 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 | ''' |