MCPcopy Create free account
hub / github.com/ChromeDevTools/devtools-frontend / _IsEnvCog

Function _IsEnvCog

PRESUBMIT.py:73–85  ·  view source on GitHub ↗
(input_api)

Source from the content-addressed store, hash-verified

71
72
73def _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
88def _GetAffectedFiles(input_api, parent_directories, excluded_actions,

Callers 2

_CheckFormatFunction · 0.85
CheckNoUncheckedFilesFunction · 0.85

Calls 2

appendMethod · 0.65
joinMethod · 0.45

Tested by

no test coverage detected