finam.tools.execute_in_cwd#

finam.tools.execute_in_cwd(func)[source]#

Decorator to execute method in given cwd of containing class.

Parameters:

func (callable) – Method of a class.

Returns:

Wrapped function to be executed in cwd.

Return type:

callable

Notes

The containing class of the given method needs to have a “cwd” property.