def print_operation(filename, failed, dryrun=False):
    print_str = filename.operation_name
    if dryrun:
        print_str = '(dryrun) ' + print_str
    if failed:
        print_str += " failed"
    print_str += ": "
    if filename.src_type == "s3":
        print_str = print_str + "s3://" + filename.src
    else:
        print_str += relative_path(filename.src)
    if filename.operation_name not in ["delete", "make_bucket",
                                       "remove_bucket"]:
        if filename.dest_type == "s3":
            print_str += " to s3://" + filename.dest
        else:
            print_str += " to " + relative_path(filename.dest)
    return print_str
Modify PATH env variable by prepending virtualenv path with ansible binaries.
dataset/ETHPy150Open aws/aws-cli/awscli/customizations/s3/tasks.py/print_operation--crossover with--dataset/ETHPy150Open StackStorm/st2contrib/packs/ansible/actions/lib/ansible_base.py/AnsibleBaseRunner._prepend_venv_path