(path, name)
| 334 | |
| 335 | |
| 336 | def _import_from_directory(path, name): |
| 337 | if name not in sys.modules: |
| 338 | import importlib.machinery |
| 339 | import importlib.util |
| 340 | |
| 341 | spec = importlib.machinery.PathFinder.find_spec(name, [path]) |
| 342 | module = importlib.util.module_from_spec(spec) |
| 343 | spec.loader.exec_module(module) |
| 344 | sys.modules[name] = module |
| 345 | return sys.modules[name] |
| 346 | |
| 347 | |
| 348 | def _get_sysconfigdata_name(): |
no test coverage detected
searching dependent graphs…