(path, name)
| 345 | |
| 346 | |
| 347 | def _import_from_directory(path, name): |
| 348 | if name not in sys.modules: |
| 349 | import importlib.machinery |
| 350 | import importlib.util |
| 351 | |
| 352 | spec = importlib.machinery.PathFinder.find_spec(name, [path]) |
| 353 | module = importlib.util.module_from_spec(spec) |
| 354 | spec.loader.exec_module(module) |
| 355 | sys.modules[name] = module |
| 356 | return sys.modules[name] |
| 357 | |
| 358 | |
| 359 | def _get_sysconfigdata_name(): |
no test coverage detected