gigl.common.utils.os_utils#
Attributes#
Functions#
|
Given an object path by name (e.g. "module_a.module_b.object_c"), returns object_c. |
Executes a command and streams the stdout output. |
Module Contents#
- gigl.common.utils.os_utils.import_obj(obj_path)[source]#
Given an object path by name (e.g. “module_a.module_b.object_c”), returns object_c.
- Parameters:
obj_path (str) – The object path by name.
- Returns:
The imported object.
- Return type:
object
- gigl.common.utils.os_utils.num_lines_in_file(f)[source]#
- Parameters:
f (io.TextIOWrapper)
- Return type:
int