summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorStefan Reinauer <stefan.reinauer@coreboot.org>2019-09-22 10:39:36 -0700
committerCommit Bot <commit-bot@chromium.org>2019-10-01 11:16:43 +0000
commit68c9a2870ead8a3306a2601c4f5689656d49c6a8 (patch)
tree87f42e176655e1458ec732e6ddd5bcb9e21335ab /util
parentaee33d5c90f8a1c754dc7651a9c8aad20bb063ec (diff)
downloadchrome-ec-68c9a2870ead8a3306a2601c4f5689656d49c6a8.tar.gz
Unify #! use in python scripts
Right now we have several different versions of #! in our python scripts. Unify them all and specify that we are using python2. Signed-off-by: Stefan Reinauer <reinauer@chromium.org> BUG=none BRANCH=none TEST=make buildall Change-Id: Iab33a3f5d4b827451a55542bcee8837b00da7867 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1817948 Commit-Queue: Stefan Reinauer <reinauer@chromium.org> Tested-by: Stefan Reinauer <reinauer@chromium.org> Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org>
Diffstat (limited to 'util')
-rw-r--r--util/chargen2
-rwxr-xr-xutil/config_option_check.py2
-rwxr-xr-xutil/ec3po/console.py2
-rwxr-xr-xutil/ec3po/console_unittest.py2
-rwxr-xr-xutil/ec3po/interpreter_unittest.py2
-rwxr-xr-xutil/flash_pd.py2
-rwxr-xr-xutil/inject-keys.py2
-rwxr-xr-xutil/run_host_test2
-rwxr-xr-xutil/unpack_ftb.py2
9 files changed, 9 insertions, 9 deletions
diff --git a/util/chargen b/util/chargen
index d9260fcb0b..42c40f13e4 100644
--- a/util/chargen
+++ b/util/chargen
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
# Copyright 2019 The Chromium OS 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/util/config_option_check.py b/util/config_option_check.py
index 95bb72a1f6..46b0c5b922 100755
--- a/util/config_option_check.py
+++ b/util/config_option_check.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python2
+#!/usr/bin/env python2
# Copyright 2015 The Chromium OS 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/util/ec3po/console.py b/util/ec3po/console.py
index a730d3d8ec..3643ea498a 100755
--- a/util/ec3po/console.py
+++ b/util/ec3po/console.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python2
+#!/usr/bin/env python2
# Copyright 2015 The Chromium OS 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/util/ec3po/console_unittest.py b/util/ec3po/console_unittest.py
index 72565ca510..3c194d8419 100755
--- a/util/ec3po/console_unittest.py
+++ b/util/ec3po/console_unittest.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python2
+#!/usr/bin/env python2
# Copyright 2015 The Chromium OS 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/util/ec3po/interpreter_unittest.py b/util/ec3po/interpreter_unittest.py
index 57c9abf4ae..de2335158b 100755
--- a/util/ec3po/interpreter_unittest.py
+++ b/util/ec3po/interpreter_unittest.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python2
+#!/usr/bin/env python2
# Copyright 2015 The Chromium OS 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/util/flash_pd.py b/util/flash_pd.py
index 71a7ca9b19..f39af7f06d 100755
--- a/util/flash_pd.py
+++ b/util/flash_pd.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
# Copyright 2014 The Chromium OS 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/util/inject-keys.py b/util/inject-keys.py
index ef87bb14b6..380fc34729 100755
--- a/util/inject-keys.py
+++ b/util/inject-keys.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python2
# -*- coding: utf-8 -*-
#
# Copyright 2016 The Chromium OS Authors. All rights reserved.
diff --git a/util/run_host_test b/util/run_host_test
index 0baaabcd06..db3345845d 100755
--- a/util/run_host_test
+++ b/util/run_host_test
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
# Copyright 2013 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
diff --git a/util/unpack_ftb.py b/util/unpack_ftb.py
index 1777d5eec6..105f7044ec 100755
--- a/util/unpack_ftb.py
+++ b/util/unpack_ftb.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
# Copyright 2018 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.