11320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci# Copyright 2014 The Chromium Authors. All rights reserved. 21320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci# Use of this source code is governed by a BSD-style license that can be 31320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci# found in the LICENSE file. 41320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci 51320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucciimport os 61320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucciimport sys 71320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci 81320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci# GN only supports shelling to python. Until update.py is used on all 91320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci# platforms (currently only Windows), wrap update.sh. 101320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tuccisys.exit(os.system(os.path.join(os.path.dirname(__file__), 'update.sh') + 111320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci ' --print-revision')) 12