def execute_tool_on_modules(project, name, command_and_arguments, extend_pythonpath=True):
    source_dir = project.expand_path("$dir_source_main_python")
    modules = discover_modules(source_dir)
    command = as_list(command_and_arguments) + modules

    report_file = project.expand_path(name % "$dir_reports/%s")

    env = os.environ
    if extend_pythonpath:
        env["PYTHONPATH"] = source_dir
    return execute_command(command, report_file, env=env), report_file
dataset/ETHPy150Open pybuilder/pybuilder/src/main/python/pybuilder/plugins/python/python_plugin_helper.py/execute_tool_on_modules/swapped operands of `%`