(path)
| 46 | return ob |
| 47 | |
| 48 | def load_module_from_path(path): |
| 49 | spec = importlib.util.spec_from_file_location("module.name", path) |
| 50 | module = importlib.util.module_from_spec(spec) |
| 51 | spec.loader.exec_module(module) |
| 52 | return module |
| 53 | |
| 54 | def get_args(parser): |
| 55 | parser.add_argument('--cfg', type=str, help='config file') |