obspy.core.util.decorator.map_example_filename
- map_example_filename(arg_kwarg_name)[source]
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.
Note
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