reload_from_cwd
Reload module (ensuring that CWD is in sys.path).
def reload_from_cwd(
module: module,
reloader: callable = None
) - > module
Reload module (ensuring that CWD is in sys.path).
Parameters
| Name | Type | Description |
|---|---|---|
| module | module | The module object that needs to be reloaded |
| reloader | callable = None | A custom reload function to use; defaults to the standard importlib.reload or equivalent |
Returns
| Type | Description |
|---|---|
module | The reloaded module object, typically the same object that was passed in but with updated contents |