The page you navigated to () does not exist, so we brought you to the closest page to it.
You have switched from the to the variant of this site. There is no equivalent of . We have taken you to the closest page in the variant.
1.16.16
flytekit.tools.module_loader
Directory
Methods
| Method | Description |
|---|---|
add_sys_path() |
Temporarily add given path to `sys. |
just_load_modules() |
This one differs from the above in that we don’t yield anything, just load all the modules. |
load_object_from_module() |
TODO: Handle corner cases, like where the first part is [] maybe. |
module_load_error_handler() |
Methods
add_sys_path()
def add_sys_path(
path: typing.Union[str, os.PathLike],
) -> typing.Iterator[NoneType]Temporarily add given path to sys.path.
| Parameter | Type | Description |
|---|---|---|
path |
typing.Union[str, os.PathLike] |
just_load_modules()
def just_load_modules(
pkgs: typing.List[str],
)This one differs from the above in that we don’t yield anything, just load all the modules.
| Parameter | Type | Description |
|---|---|---|
pkgs |
typing.List[str] |
load_object_from_module()
def load_object_from_module(
object_location: str,
) -> typing.AnyTODO: Handle corner cases, like where the first part is [] maybe
| Parameter | Type | Description |
|---|---|---|
object_location |
str |
module_load_error_handler()
def module_load_error_handler(
args,
kwargs,
)| Parameter | Type | Description |
|---|---|---|
args |
*args |
|
kwargs |
**kwargs |