From: Ed Schouten Date: Tue, 2 Sep 2014 20:59:13 +0000 (+0000) Subject: Use /usr/bin/env python instead of /usr/bin/python. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6fb7b46f373803a652df544564815aa24dadabb8;p=clang Use /usr/bin/env python instead of /usr/bin/python. On operating systems like the BSDs, it is typically the case that /usr/bin/python does not exist. We should therefore use /usr/bin/env instead. This is also done in various other scripts in tools/. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@216945 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/tools/clang-format/clang-format-diff.py b/tools/clang-format/clang-format-diff.py index d6d0d44a06..b896ffce93 100755 --- a/tools/clang-format/clang-format-diff.py +++ b/tools/clang-format/clang-format-diff.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python # #===- clang-format-diff.py - ClangFormat Diff Reformatter ----*- python -*--===# # diff --git a/tools/clang-format/git-clang-format b/tools/clang-format/git-clang-format index c40b74dae4..6a0db27fa9 100755 --- a/tools/clang-format/git-clang-format +++ b/tools/clang-format/git-clang-format @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python # #===- git-clang-format - ClangFormat Git Integration ---------*- python -*--===# #