14SRC_ROOT = os.path.dirname(
15 os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
17FLUTTER_DIR = os.path.join(SRC_ROOT,
'flutter')
22 return os_id.startswith(
'win32')
or os_id.startswith(
'cygwin')
27 githooks = os.path.join(FLUTTER_DIR,
'tools',
'githooks')
30 result = subprocess.run([
36 return result.returncode
39if __name__ ==
'__main__':
40 sys.exit(
Main(sys.argv))