crosperf+cros_utils: Swap to #!/usr/bin/env.

`cros lint` was recently updated to complain about
using #!/usr/bin/python{,2,3} directly. Instead, it prefers
/usr/bin/env python{2,3} now.

BUG=None
TEST=./run_tests.sh passes; linter seems much happier with crosperf.

Change-Id: I9b88a7af1f8e03b7c870781c3d8dc1b872a3dfc3
Reviewed-on: https://chrome-internal-review.googlesource.com/286341
Commit-Ready: Luis Lozano <llozano@chromium.org>
Tested-by: Luis Lozano <llozano@chromium.org>
Reviewed-by: Luis Lozano <llozano@chromium.org>
diff --git a/cros_utils/buildbot_json.py b/cros_utils/buildbot_json.py
index 693a42c..8a9d9cb 100755
--- a/cros_utils/buildbot_json.py
+++ b/cros_utils/buildbot_json.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python2
+#!/usr/bin/env python2
 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
 #
 # Redistribution and use in source and binary forms, with or without
diff --git a/cros_utils/command_executer_unittest.py b/cros_utils/command_executer_unittest.py
index d5f5d0c..f039ebc 100755
--- a/cros_utils/command_executer_unittest.py
+++ b/cros_utils/command_executer_unittest.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python2
+#!/usr/bin/env python2
 """Unittest for command_executer.py."""
 
 from __future__ import print_function
diff --git a/cros_utils/email_sender.py b/cros_utils/email_sender.py
index cd45b4e..e5a20ad 100755
--- a/cros_utils/email_sender.py
+++ b/cros_utils/email_sender.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python2
+#!/usr/bin/env python2
 
 # Copyright 2011 Google Inc. All Rights Reserved.
 """Utilities to send email either through SMTP or SendGMR."""
diff --git a/cros_utils/perf_diff.py b/cros_utils/perf_diff.py
index c861f6b..31cde99 100755
--- a/cros_utils/perf_diff.py
+++ b/cros_utils/perf_diff.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python2
+#!/usr/bin/env python2
 # Copyright 2012 Google Inc. All Rights Reserved.
 """One-line documentation for perf_diff module.
 
diff --git a/crosperf/benchmark_run_unittest.py b/crosperf/benchmark_run_unittest.py
index c303daa..f0815ec 100755
--- a/crosperf/benchmark_run_unittest.py
+++ b/crosperf/benchmark_run_unittest.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python2
+#!/usr/bin/env python2
 
 # Copyright (c) 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/crosperf/benchmark_unittest.py b/crosperf/benchmark_unittest.py
index 0a90eef..320ede6 100755
--- a/crosperf/benchmark_unittest.py
+++ b/crosperf/benchmark_unittest.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python2
+#!/usr/bin/env python2
 #
 # Copyright 2014 Google Inc.  All Rights Reserved
 """Unit tests for the Crosperf Benchmark class."""
diff --git a/crosperf/config_unittest.py b/crosperf/config_unittest.py
index b632055..637dae9 100755
--- a/crosperf/config_unittest.py
+++ b/crosperf/config_unittest.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python2
+#!/usr/bin/env python2
 #
 # Copyright 2014 Google Inc. All Rights Reserved.
 """Unit tests for config.py"""
diff --git a/crosperf/crosperf.py b/crosperf/crosperf.py
index 4c13c02..0a32cb8 100755
--- a/crosperf/crosperf.py
+++ b/crosperf/crosperf.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python2
+#!/usr/bin/env python2
 
 # Copyright 2011 Google Inc. All Rights Reserved.
 """The driver script for running performance benchmarks on ChromeOS."""
diff --git a/crosperf/crosperf_test.py b/crosperf/crosperf_test.py
index 8f929e7..085efaf 100755
--- a/crosperf/crosperf_test.py
+++ b/crosperf/crosperf_test.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python2
+#!/usr/bin/env python2
 
 # Copyright 2011 Google Inc. All Rights Reserved.
 """Test for crosperf."""
diff --git a/crosperf/crosperf_unittest.py b/crosperf/crosperf_unittest.py
index 24015b3..4a46896 100755
--- a/crosperf/crosperf_unittest.py
+++ b/crosperf/crosperf_unittest.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python2
+#!/usr/bin/env python2
 #
 # Copyright 2014 Google Inc. All Rights Reserved.
 """Unittest for crosperf."""
diff --git a/crosperf/download_images_buildid_test.py b/crosperf/download_images_buildid_test.py
index d00a59f..3e7f00c 100755
--- a/crosperf/download_images_buildid_test.py
+++ b/crosperf/download_images_buildid_test.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python2
+#!/usr/bin/env python2
 #
 # Copyright 2014 Google Inc.  All Rights Reserved
 """Test translation of xbuddy names."""
diff --git a/crosperf/download_images_unittest.py b/crosperf/download_images_unittest.py
index 273a965..912673c 100755
--- a/crosperf/download_images_unittest.py
+++ b/crosperf/download_images_unittest.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python2
+#!/usr/bin/env python2
 #
 # Copyright 2014 Google Inc.  All Rights Reserved
 """Download image unittest."""
diff --git a/crosperf/experiment_factory_unittest.py b/crosperf/experiment_factory_unittest.py
index 0e83665..df0f808 100755
--- a/crosperf/experiment_factory_unittest.py
+++ b/crosperf/experiment_factory_unittest.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python2
+#!/usr/bin/env python2
 
 # Copyright (c) 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/crosperf/experiment_file_unittest.py b/crosperf/experiment_file_unittest.py
index bb4f225..ed1f176 100755
--- a/crosperf/experiment_file_unittest.py
+++ b/crosperf/experiment_file_unittest.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python2
+#!/usr/bin/env python2
 
 # Copyright (c) 2011 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/crosperf/experiment_runner_unittest.py b/crosperf/experiment_runner_unittest.py
index 6ad0c7f..38ac387 100755
--- a/crosperf/experiment_runner_unittest.py
+++ b/crosperf/experiment_runner_unittest.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python2
+#!/usr/bin/env python2
 #
 # Copyright (c) 2014 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/crosperf/flag_test_unittest.py b/crosperf/flag_test_unittest.py
index 95d00de..9f2a713 100755
--- a/crosperf/flag_test_unittest.py
+++ b/crosperf/flag_test_unittest.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python2
+#!/usr/bin/env python2
 #
 # Copyright 2014 Google Inc. All Rights Reserved.
 
diff --git a/crosperf/generate_report_unittest.py b/crosperf/generate_report_unittest.py
index 230fe61..7f55632 100755
--- a/crosperf/generate_report_unittest.py
+++ b/crosperf/generate_report_unittest.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python2
+#!/usr/bin/env python2
 #
 # Copyright 2016 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/crosperf/machine_image_manager_unittest.py b/crosperf/machine_image_manager_unittest.py
index 0b75de0..fe41dc0 100755
--- a/crosperf/machine_image_manager_unittest.py
+++ b/crosperf/machine_image_manager_unittest.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python2
+#!/usr/bin/env python2
 
 # Copyright 2015 Google Inc. All Rights Reserved.
 
diff --git a/crosperf/machine_manager_unittest.py b/crosperf/machine_manager_unittest.py
index ff97c1f..2002baa 100755
--- a/crosperf/machine_manager_unittest.py
+++ b/crosperf/machine_manager_unittest.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python2
+#!/usr/bin/env python2
 
 # Copyright 2012 Google Inc. All Rights Reserved.
 """Unittest for machine_manager."""
diff --git a/crosperf/results_cache_unittest.py b/crosperf/results_cache_unittest.py
index 85ed8a8..5a824b1 100755
--- a/crosperf/results_cache_unittest.py
+++ b/crosperf/results_cache_unittest.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python2
+#!/usr/bin/env python2
 
 # Copyright (c) 2011 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/crosperf/results_organizer_unittest.py b/crosperf/results_organizer_unittest.py
index 0d21412..ccf0297 100755
--- a/crosperf/results_organizer_unittest.py
+++ b/crosperf/results_organizer_unittest.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python2
+#!/usr/bin/env python2
 
 # Copyright (c) 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/crosperf/results_report_unittest.py b/crosperf/results_report_unittest.py
index cfd4eb9..ed5c74f 100755
--- a/crosperf/results_report_unittest.py
+++ b/crosperf/results_report_unittest.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python2
+#!/usr/bin/env python2
 #
 # Copyright 2016 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/crosperf/schedv2_unittest.py b/crosperf/schedv2_unittest.py
index 8ad9663..be0fde4 100755
--- a/crosperf/schedv2_unittest.py
+++ b/crosperf/schedv2_unittest.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python2
+#!/usr/bin/env python2
 
 # Copyright 2015 Google Inc. All Rights Reserved.
 """This contains the unit tests for the new Crosperf task scheduler."""
diff --git a/crosperf/settings_factory_unittest.py b/crosperf/settings_factory_unittest.py
index 5df5fd6..c2b8980 100755
--- a/crosperf/settings_factory_unittest.py
+++ b/crosperf/settings_factory_unittest.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python2
+#!/usr/bin/env python2
 #
 # Copyright 2014 Google Inc. All Rights Reserved.
 """Unittest for crosperf."""
diff --git a/crosperf/settings_unittest.py b/crosperf/settings_unittest.py
index ee863b8..9ea7a2f 100755
--- a/crosperf/settings_unittest.py
+++ b/crosperf/settings_unittest.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python2
+#!/usr/bin/env python2
 #
 # Copyright 2014 Google Inc.  All Rights Reserved.
 """unittest for settings."""
diff --git a/crosperf/suite_runner_unittest.py b/crosperf/suite_runner_unittest.py
index 2841612..176ef5c 100755
--- a/crosperf/suite_runner_unittest.py
+++ b/crosperf/suite_runner_unittest.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python2
+#!/usr/bin/env python2
 #
 # Copyright 2014 Google Inc. All Rights Reserved.
 """Unittest for suite_runner."""