diff --git a/gclient b/gclient index 798b2d8d7..5ef06e462 100755 --- a/gclient +++ b/gclient @@ -9,4 +9,4 @@ if [[ "#grep#fetch#cleanup#diff#" != *"#$1#"* ]]; then "$base_dir"/update_depot_tools "$@" fi -PYTHONDONTWRITEBYTECODE=1 exec python "$base_dir/gclient.py" "$@" +PYTHONDONTWRITEBYTECODE=1 exec python2.7 "$base_dir/gclient.py" "$@" diff --git a/gclient.py b/gclient.py index 00bb95d70..d3501910c 100755 --- a/gclient.py +++ b/gclient.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python2.7 # Copyright (c) 2012 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. diff --git a/git_cl.py b/git_cl.py index c212300f5..8fa8a30b1 100755 --- a/git_cl.py +++ b/git_cl.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python2.7 # Copyright (c) 2012 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. diff --git a/tests/gclient_smoketest.py b/tests/gclient_smoketest.py index 50e7fd72c..af7205e11 100755 --- a/tests/gclient_smoketest.py +++ b/tests/gclient_smoketest.py @@ -517,7 +517,7 @@ class GClientSmokeGIT(GClientSmokeBase): ('running', self.root_dir), # pre-deps hook ('running', self.root_dir), # pre-deps hook (fails) ] - expected_stderr = ("Error: Command '/usr/bin/python -c import sys; " + expected_stderr = ("Error: Command '/usr/bin/python2.7 -c import sys; " "sys.exit(1)' returned non-zero exit status 1 in %s\n" % self.root_dir) stdout, stderr, retcode = self.gclient(['sync', '--deps', 'mac', '--jobs=1',