OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 | 2 |
| 3 # Copyright (c) 2009 Google Inc. All rights reserved. |
| 4 # Use of this source code is governed by a BSD-style license that can be |
| 5 # found in the LICENSE file. |
| 6 |
3 import sys | 7 import sys |
4 | 8 |
5 # TODO(mark): sys.path manipulation is some temporary testing stuff. | 9 # TODO(mark): sys.path manipulation is some temporary testing stuff. |
6 try: | 10 try: |
7 import gyp | 11 import gyp |
8 except ImportError, e: | 12 except ImportError, e: |
9 import os.path | 13 import os.path |
10 sys.path.append(os.path.join(os.path.dirname(sys.argv[0]), 'pylib')) | 14 sys.path.append(os.path.join(os.path.dirname(sys.argv[0]), 'pylib')) |
11 import gyp | 15 import gyp |
12 | 16 |
13 if __name__ == '__main__': | 17 if __name__ == '__main__': |
14 sys.exit(gyp.main(sys.argv[1:])) | 18 sys.exit(gyp.main(sys.argv[1:])) |
OLD | NEW |