1342c50ce1624b485728b9a4fc41d8bbf37eb46cfBen Murdoch#!/usr/bin/env python 2342c50ce1624b485728b9a4fc41d8bbf37eb46cfBen Murdoch 3342c50ce1624b485728b9a4fc41d8bbf37eb46cfBen Murdoch# Copyright (c) 2009 Google Inc. All rights reserved. 4342c50ce1624b485728b9a4fc41d8bbf37eb46cfBen Murdoch# Use of this source code is governed by a BSD-style license that can be 5342c50ce1624b485728b9a4fc41d8bbf37eb46cfBen Murdoch# found in the LICENSE file. 6342c50ce1624b485728b9a4fc41d8bbf37eb46cfBen Murdoch 7342c50ce1624b485728b9a4fc41d8bbf37eb46cfBen Murdochimport os 8342c50ce1624b485728b9a4fc41d8bbf37eb46cfBen Murdochimport sys 9342c50ce1624b485728b9a4fc41d8bbf37eb46cfBen Murdoch 10342c50ce1624b485728b9a4fc41d8bbf37eb46cfBen Murdoch# Make sure we're using the version of pylib in this repo, not one installed 11342c50ce1624b485728b9a4fc41d8bbf37eb46cfBen Murdoch# elsewhere on the system. 12342c50ce1624b485728b9a4fc41d8bbf37eb46cfBen Murdochsys.path.insert(0, os.path.join(os.path.dirname(sys.argv[0]), 'pylib')) 13342c50ce1624b485728b9a4fc41d8bbf37eb46cfBen Murdochimport gyp 14342c50ce1624b485728b9a4fc41d8bbf37eb46cfBen Murdoch 15342c50ce1624b485728b9a4fc41d8bbf37eb46cfBen Murdochif __name__ == '__main__': 16342c50ce1624b485728b9a4fc41d8bbf37eb46cfBen Murdoch sys.exit(gyp.script_main()) 17