Use /usr/bin/env trick to find python. Patch by Krister Walfridsson.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@75271 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/utils/ABITest/ABITestGen.py b/utils/ABITest/ABITestGen.py
index 5598caa..63da02b 100755
--- a/utils/ABITest/ABITestGen.py
+++ b/utils/ABITest/ABITestGen.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
from pprint import pprint
import random, atexit, time
diff --git a/utils/CaptureCmd b/utils/CaptureCmd
index 3bce357e1..705585c 100755
--- a/utils/CaptureCmd
+++ b/utils/CaptureCmd
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
"""CaptureCmd - A generic tool for capturing information about the
invocations of another program.
diff --git a/utils/CmpDriver b/utils/CmpDriver
index 97c91a8..bf0761f 100755
--- a/utils/CmpDriver
+++ b/utils/CmpDriver
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
import subprocess
diff --git a/utils/FindSpecRefs b/utils/FindSpecRefs
index c74ca3d..9097f93 100755
--- a/utils/FindSpecRefs
+++ b/utils/FindSpecRefs
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
import os
import re
diff --git a/utils/SummarizeErrors b/utils/SummarizeErrors
index 64d7824..b6e9122 100755
--- a/utils/SummarizeErrors
+++ b/utils/SummarizeErrors
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
import os, sys, re
diff --git a/utils/test/MultiTestRunner.py b/utils/test/MultiTestRunner.py
index 6d0c14a..9ad8a78 100755
--- a/utils/test/MultiTestRunner.py
+++ b/utils/test/MultiTestRunner.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
"""
MultiTestRunner - Harness for running multiple tests in the simple clang style.
diff --git a/utils/test/ProgressBar.py b/utils/test/ProgressBar.py
index 2e1f24a..13db7ec 100644
--- a/utils/test/ProgressBar.py
+++ b/utils/test/ProgressBar.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
# Source: http://code.activestate.com/recipes/475116/, with
# modifications by Daniel Dunbar.
diff --git a/utils/test/TestRunner.py b/utils/test/TestRunner.py
index 9020622..77158fd 100755
--- a/utils/test/TestRunner.py
+++ b/utils/test/TestRunner.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
#
# TestRunner.py - This script is used to run arbitrary unit tests. Unit
# tests must contain the command used to run them in the input file, starting