get_mod_func
Splits a full path string into its module path and function name components by finding the last dot separator.
def get_mod_func(
callback: string
) - > tuple
Splits a full Python path string into its module path and function name components.
Parameters
| Name | Type | Description |
|---|---|---|
| callback | string | The full dot-separated string representing the path to a Python module and function. |
Returns
| Type | Description |
|---|---|
tuple | A tuple containing the module path and the function name; if no dot is present, the original string and an empty string are returned. |