Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(19)

Side by Side Diff: build/android/gn/create_incremental_install_script.py

Issue 1313513006: Fix sys.path of create_incremental_install_script.py (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 2
3 # Copyright 2015 The Chromium Authors. All rights reserved. 3 # Copyright 2015 The Chromium Authors. All rights reserved.
4 # Use of this source code is governed by a BSD-style license that can be 4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file. 5 # found in the LICENSE file.
6 6
7 """Creates a script to run a "_incremental" .apk.""" 7 """Creates a script to run a "_incremental" .apk."""
8 8
9 import argparse 9 import argparse
10 import os 10 import os
11 import sys 11 import sys
12 12
13 sys.path.append(os.path.join(os.path.dirname(__file__), os.pardir)) 13 sys.path.append(os.path.join(os.path.dirname(__file__), os.pardir))
14 from gyp.util import build_utils 14 sys.path.append(os.path.join(os.path.dirname(__file__), os.pardir, 'gyp'))
15 from util import build_utils
15 from pylib import constants 16 from pylib import constants
16 17
17 18
18 SCRIPT_TEMPLATE = """\ 19 SCRIPT_TEMPLATE = """\
19 #!/usr/bin/env python 20 #!/usr/bin/env python
20 # 21 #
21 # This file was generated by: 22 # This file was generated by:
22 # //build/android/gyp/create_incremental_install_script.py 23 # //build/android/gyp/create_incremental_install_script.py
23 24
24 import os 25 import os
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 os.chmod(options.script_output_path, 0750) 93 os.chmod(options.script_output_path, 0750)
93 94
94 if options.depfile: 95 if options.depfile:
95 build_utils.WriteDepfile( 96 build_utils.WriteDepfile(
96 options.depfile, 97 options.depfile,
97 build_utils.GetPythonDependencies()) 98 build_utils.GetPythonDependencies())
98 99
99 100
100 if __name__ == '__main__': 101 if __name__ == '__main__':
101 sys.exit(main(sys.argv[1:])) 102 sys.exit(main(sys.argv[1:]))
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698