Skip to main content

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

NameTypeDescription
modulemoduleThe module object that needs to be reloaded
reloadercallable = NoneA custom reload function to use; defaults to the standard importlib.reload or equivalent

Returns

TypeDescription
moduleThe reloaded module object, typically the same object that was passed in but with updated contents