summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Mick <dan.mick@inktank.com>2013-09-30 14:58:11 -0700
committerDan Mick <dan.mick@inktank.com>2013-09-30 18:58:42 -0700
commit32f5233288c47d95b87c0a9cab5f9c2ffcf15417 (patch)
tree1575995158dfa8d0c72ec066ce975269af6f7119
parent66aeca5a9079be398403bbff67bd5bf68c6fb111 (diff)
downloadceph-32f5233288c47d95b87c0a9cab5f9c2ffcf15417.tar.gz
Invoke python with /usr/bin/env python instead of directly
Fixes: #6311 Signed-off-by: Dan Mick <dan.mick@inktank.com> (cherry picked from commit b9000b314b9166845ff302d4a827a996775d9a14)
-rw-r--r--src/Makefile.am2
-rwxr-xr-xsrc/ceph-create-keys2
-rwxr-xr-xsrc/ceph-disk2
-rwxr-xr-xsrc/ceph-rest-api2
-rwxr-xr-xsrc/objsync/boto_del.py2
-rwxr-xr-xsrc/pybind/ceph_rest_api.py1
-rwxr-xr-xsrc/script/perf-watch.py2
7 files changed, 6 insertions, 7 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index 97c9e7a963d..7a816c47d65 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -1441,7 +1441,7 @@ test/encoding/ceph_dencoder.cc: ./ceph_ver.h
ceph: ceph.in ./ceph_ver.h Makefile
rm -f $@ $@.tmp
- echo "#!/usr/bin/python" >$@.tmp
+ echo "#!/usr/bin/env python" >$@.tmp
grep "#define CEPH_GIT_NICE_VER" ./ceph_ver.h | \
sed -e 's/#define \(.*VER\) /\1=/' >>$@.tmp
grep "#define CEPH_GIT_VER" ./ceph_ver.h | \
diff --git a/src/ceph-create-keys b/src/ceph-create-keys
index 176b06e7a38..0359228d5f8 100755
--- a/src/ceph-create-keys
+++ b/src/ceph-create-keys
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
import argparse
import errno
import json
diff --git a/src/ceph-disk b/src/ceph-disk
index 3d09bdf7418..0691d252cd7 100755
--- a/src/ceph-disk
+++ b/src/ceph-disk
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
import argparse
import errno
diff --git a/src/ceph-rest-api b/src/ceph-rest-api
index ae5245b4f76..772b3d20fcd 100755
--- a/src/ceph-rest-api
+++ b/src/ceph-rest-api
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
# vim: ts=4 sw=4 smarttab expandtab
import argparse
diff --git a/src/objsync/boto_del.py b/src/objsync/boto_del.py
index 14e790544ec..ba512e1ca33 100755
--- a/src/objsync/boto_del.py
+++ b/src/objsync/boto_del.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
#
# Ceph - scalable distributed file system
diff --git a/src/pybind/ceph_rest_api.py b/src/pybind/ceph_rest_api.py
index c53c3d77737..75e61060544 100755
--- a/src/pybind/ceph_rest_api.py
+++ b/src/pybind/ceph_rest_api.py
@@ -1,4 +1,3 @@
-#!/usr/bin/python
# vim: ts=4 sw=4 smarttab expandtab
import errno
diff --git a/src/script/perf-watch.py b/src/script/perf-watch.py
index 8c18c3ec766..826d4a499d7 100755
--- a/src/script/perf-watch.py
+++ b/src/script/perf-watch.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
import json
import argparse