summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlfredo Deza <alfredo@deza.pe>2013-09-30 15:28:54 -0700
committerAlfredo Deza <alfredo@deza.pe>2013-09-30 15:28:54 -0700
commitfac4a897f948c51e22b075b42e5cbe8a259235bc (patch)
treece9f84437a4a7f1f54e0ea668ab20482b93fb118
parent1fc24ffb1243e4de73fd4a02d8b934a12cf51fd1 (diff)
parentb9000b314b9166845ff302d4a827a996775d9a14 (diff)
downloadceph-fac4a897f948c51e22b075b42e5cbe8a259235bc.tar.gz
Merge pull request #662 from dmick/next
Invoke python with /usr/bin/env python instead of directly
-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 3bdec278c6f..e3e9a3edb1b 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -1466,7 +1466,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