摘要: GYP是chrome方便生成各种工程项目使用python写的脚本,后缀gyp其实是python脚本,chrome使用的python2.6作为脚本的我们以chrome中v8项目的gyp主要说明下script_dir = os.path.dirname(__file__) //获得该脚本路径v8_root = os.path.normpath(os.path.join(script_dir, os.pardir)) //获得根目录sys.path.insert(0, os.path.join(v8_root, 'build', 'gyp', 'pylib&# 阅读全文
posted @ 2012-08-13 23:33 zhengchuang 阅读(803) 评论(0) 推荐(0) 编辑