gyp_main.py 461 B

123456789101112131415161718
  1. #!/usr/bin/env python
  2. # Copyright (c) 2009 Google Inc. 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. import sys
  6. # TODO(mark): sys.path manipulation is some temporary testing stuff.
  7. try:
  8. import gyp
  9. except ImportError, e:
  10. import os.path
  11. sys.path.append(os.path.join(os.path.dirname(sys.argv[0]), 'pylib'))
  12. import gyp
  13. if __name__ == '__main__':
  14. sys.exit(gyp.script_main())