blob: d029fffe4c03ff06f5ca490c82aa1a1eaa056d2c [file] [log] [blame]
Chris Craik93216d02015-03-05 13:58:42 -08001#!/usr/bin/env python
2# Copyright (c) 2014 The Chromium Authors. All rights reserved.
3# Use of this source code is governed by a BSD-style license that can be
4# found in the LICENSE file.
5
6import os
7import sys
8
9if __name__ == '__main__':
10 f = __file__
11 if os.path.islink(f):
12 f = os.path.abspath(os.path.join(os.path.dirname(f), os.readlink(f)))
13 top_dir = os.path.abspath(os.path.join(os.path.dirname(f), '..'))
14 sys.path.append(top_dir)
15 from hooks import pre_commit
16 sys.exit(pre_commit.Main(sys.argv[1:]))