Use #!/usr/bin/env python3 to pickup python binary set by user
TESTED: Printed the python executable path in one the python scripts
and it was the path I set in the shell environment, and not /usr/bin/python3
Change-Id: Ia89b61f5079d8ebd6b5fefc0128f2081b8c3e8a8
diff --git a/busytown/impl/parse_profile_html.py b/busytown/impl/parse_profile_html.py
index 0ce5cae..436db9f 100755
--- a/busytown/impl/parse_profile_html.py
+++ b/busytown/impl/parse_profile_html.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python3
+#!/usr/bin/env python3
#
# Copyright (C) 2016 The Android Open Source Project
#
diff --git a/development/JetpadClient.py b/development/JetpadClient.py
index 19b74bc..88eb445 100644
--- a/development/JetpadClient.py
+++ b/development/JetpadClient.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python3
+#!/usr/bin/env python3
#
# Copyright (C) 2020 The Android Open Source Project
#
diff --git a/development/build_log_simplifier/build_log_simplifier.py b/development/build_log_simplifier/build_log_simplifier.py
index 7bff81e..17ba86d 100755
--- a/development/build_log_simplifier/build_log_simplifier.py
+++ b/development/build_log_simplifier/build_log_simplifier.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python3
+#!/usr/bin/env python3
#
# Copyright (C) 2016 The Android Open Source Project
#
diff --git a/development/build_log_simplifier/test.py b/development/build_log_simplifier/test.py
index 40ab24b..5c7bb3d 100755
--- a/development/build_log_simplifier/test.py
+++ b/development/build_log_simplifier/test.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python3
+#!/usr/bin/env python3
#
# Copyright (C) 2020 The Android Open Source Project
#
diff --git a/development/copy_screenshots_to_golden_repo.py b/development/copy_screenshots_to_golden_repo.py
index 5f80cbb..1d16446 100755
--- a/development/copy_screenshots_to_golden_repo.py
+++ b/development/copy_screenshots_to_golden_repo.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python3
+#!/usr/bin/env python3
# This script helps to rename and copy the golden images required to run the screenshot tests to the golden directory.
# To generate new golden images for a test, run the test on the emulator with the required device type, and download the screenshots from the device using adb
diff --git a/development/file-utils/diff-filterer.py b/development/file-utils/diff-filterer.py
index d7d4cbb..31d9bf2 100755
--- a/development/file-utils/diff-filterer.py
+++ b/development/file-utils/diff-filterer.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python3
+#!/usr/bin/env python3
#
# Copyright (C) 2018 The Android Open Source Project
#
diff --git a/development/importMaven/import_maven_artifacts.py b/development/importMaven/import_maven_artifacts.py
index c3f6947..66f02fe 100755
--- a/development/importMaven/import_maven_artifacts.py
+++ b/development/importMaven/import_maven_artifacts.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python3
+#!/usr/bin/env python3
"""
Copyright 2018 The Android Open Source Project
diff --git a/development/offlinifyDocs/offlinify_dackka_docs.py b/development/offlinifyDocs/offlinify_dackka_docs.py
index 932d03c..2c16bfa 100644
--- a/development/offlinifyDocs/offlinify_dackka_docs.py
+++ b/development/offlinifyDocs/offlinify_dackka_docs.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python3
+#!/usr/bin/env python3
from argparse import ArgumentParser
import os
diff --git a/development/offlinifyDocs/test_offlinify_dackka_docs.py b/development/offlinifyDocs/test_offlinify_dackka_docs.py
index c6695dd..116481c 100644
--- a/development/offlinifyDocs/test_offlinify_dackka_docs.py
+++ b/development/offlinifyDocs/test_offlinify_dackka_docs.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python3
+#!/usr/bin/env python3
from filecmp import cmp, dircmp
from offlinify_dackka_docs import check_library, process_input, STYLE_FILENAME
diff --git a/development/project-creator/create_project.py b/development/project-creator/create_project.py
index f58b39e..4f4c509 100755
--- a/development/project-creator/create_project.py
+++ b/development/project-creator/create_project.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python3
+#!/usr/bin/env python3
#
# Copyright (C) 2020 The Android Open Source Project
#
diff --git a/development/project-creator/test_project_creator.py b/development/project-creator/test_project_creator.py
index 9d3c2c8..cdf4d06 100755
--- a/development/project-creator/test_project_creator.py
+++ b/development/project-creator/test_project_creator.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python3
+#!/usr/bin/env python3
#
# Copyright (C) 2020 The Android Open Source Project
#
diff --git a/development/simplify-build-failure/impl/explode.py b/development/simplify-build-failure/impl/explode.py
index 3ade65a..5ea515f1 100755
--- a/development/simplify-build-failure/impl/explode.py
+++ b/development/simplify-build-failure/impl/explode.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python3
+#!/usr/bin/env python3
#
# Copyright (C) 2020 The Android Open Source Project
#
diff --git a/development/suppressFailingTests.py b/development/suppressFailingTests.py
index d9c71af..e39cf95 100755
--- a/development/suppressFailingTests.py
+++ b/development/suppressFailingTests.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python3
+#!/usr/bin/env python3
"""
Parses information about failing tests, and then generates a change to disable them.
diff --git a/development/ts.py b/development/ts.py
index f4c54d9..95e8faf 100755
--- a/development/ts.py
+++ b/development/ts.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python3
+#!/usr/bin/env python3
# This program reads stdin, prepends the current time to each line, and prints the result
from datetime import datetime