(input_api)
| 71 | |
| 72 | |
| 73 | def _IsEnvCog(input_api): |
| 74 | old_sys_path = sys.path[:] |
| 75 | devtools_root = input_api.PresubmitLocalPath() |
| 76 | depot_tools = input_api.os_path.join(devtools_root, 'third_party', |
| 77 | 'depot_tools') |
| 78 | try: |
| 79 | sys.path.append(depot_tools) |
| 80 | from gclient_utils import IsEnvCog |
| 81 | if IsEnvCog(): |
| 82 | return True |
| 83 | finally: |
| 84 | sys.path = old_sys_path |
| 85 | return False |
| 86 | |
| 87 | |
| 88 | def _GetAffectedFiles(input_api, parent_directories, excluded_actions, |
no test coverage detected