Decorator that replaces “/path/to/filename” patterns in the arg or kwarg of the specified name with the correct file path. If the pattern is not encountered nothing is done.


Actually, this is not a decorator itself but a decorator factory, returning the correct decorator for the specified options. It can be used just like a decorator.

Parameters:arg_kwarg_name (str) name of the arg/kwarg that should be (tried) to map