importFileModule - import file as a module and return that module
(file)
| 683 | return (branch, '') |
| 684 | |
| 685 | def importFileModule(file): |
| 686 | """importFileModule - import file as a module and return that module""" |
| 687 | |
| 688 | (path, file) = os.path.split(file) |
| 689 | (module, extension) = os.path.splitext(file) |
| 690 | sys.path.append(path) |
| 691 | |
| 692 | return importlib.import_module(module) |
| 693 |
no test coverage detected