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

Side by Side Diff: site_scons/site_init.py

Issue 12450015: **/*.py: use /usr/bin/env to find python Base URL: https://chromium.googlesource.com/native_client/src/native_client@master
Patch Set: Created 7 years, 9 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 | « site_scons/gyp_extract.py ('k') | site_scons/site_tools/code_coverage.py » ('j') | 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/python 1 #!/usr/bin/env python
2 # Copyright (c) 2011 The Native Client Authors. All rights reserved. 2 # Copyright (c) 2011 The Native Client Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 """Software construction toolkit site_scons configuration. 6 """Software construction toolkit site_scons configuration.
7 7
8 This module sets up SCons for use with this toolkit. This should contain setup 8 This module sets up SCons for use with this toolkit. This should contain setup
9 which occurs outside of environments. If a method operates within the context 9 which occurs outside of environments. If a method operates within the context
10 of an environment, it should instead go in a tool in site_tools and be invoked 10 of an environment, it should instead go in a tool in site_tools and be invoked
11 for the target environment. 11 for the target environment.
(...skipping 329 matching lines...) Expand 10 before | Expand all | Expand 10 after
341 # Since our site dir was specified on the SCons command line, SCons will 341 # Since our site dir was specified on the SCons command line, SCons will
342 # normally only look at our site dir. Add back checking for project-local 342 # normally only look at our site dir. Add back checking for project-local
343 # site_scons directories. 343 # site_scons directories.
344 if not SCons.Script.GetOption('no_site_dir'): 344 if not SCons.Script.GetOption('no_site_dir'):
345 SCons.Script.Main._load_site_scons_dir( 345 SCons.Script.Main._load_site_scons_dir(
346 SCons.Node.FS.get_default_fs().SConstruct_dir, None) 346 SCons.Node.FS.get_default_fs().SConstruct_dir, None)
347 347
348 348
349 # Run main code 349 # Run main code
350 SiteInitMain() 350 SiteInitMain()
OLDNEW
« no previous file with comments | « site_scons/gyp_extract.py ('k') | site_scons/site_tools/code_coverage.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698