Skip to content

Commit bf041d9

Browse files
committed
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/. llvm-svn: 216945
1 parent b78875e commit bf041d9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

clang/tools/clang-format/clang-format-diff.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/python
1+
#!/usr/bin/env python
22
#
33
#===- clang-format-diff.py - ClangFormat Diff Reformatter ----*- python -*--===#
44
#

clang/tools/clang-format/git-clang-format

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/python
1+
#!/usr/bin/env python
22
#
33
#===- git-clang-format - ClangFormat Git Integration ---------*- python -*--===#
44
#

0 commit comments

Comments
 (0)