Return the module after creating it and adding it to sys.modules. If parents is True then also create any missing parents.
(spec, *, parents=True)
| 430 | |
| 431 | |
| 432 | def add_package(spec, *, parents=True): |
| 433 | """Return the module after creating it and adding it to sys.modules. |
| 434 | |
| 435 | If parents is True then also create any missing parents. |
| 436 | """ |
| 437 | return _add_module(spec, True, parents) |
| 438 | |
| 439 | |
| 440 | def ensure_module_imported(name, *, clearnone=True): |
nothing calls this directly
no test coverage detected
searching dependent graphs…