@contextfilter
def abs_filter(ctx, value, base=None):
    if isinstance(value, JipUndefined):
        return (value._undefined_name) % "${%s|abs}"
    try:
        value = __resolve_options(ctx, value)

        if not isinstance(value, Option):
            v = str(value)
        else:
            v = value.get()
            if value.source._job is not None:
                base = value.source.job.working_dir

        if base is None:
            base = os.getcwd()

        if isinstance(v, basestring) and v and len(v) > 0 and\
                not v.startswith('/'):
            v = os.path.join(os.path.abspath(base), v)
        return v
    except:
        return value
dataset/ETHPy150Open thasso/pyjip/jip/templates.py/abs_filter/swapped operands of `%`