[next] telepathy-glib: stop hardcoding python's path in .py scripts

Guillaume Desmottes gdesmott at kemper.freedesktop.org
Mon May 26 05:13:58 PDT 2014


Module: telepathy-glib
Branch: next
Commit: 1880685e4cf1116dee132915f9e545d8e5d2ad31
URL:    http://cgit.freedesktop.org/telepathy/telepathy-glib/commit/?id=1880685e4cf1116dee132915f9e545d8e5d2ad31

Author: Guillaume Desmottes <guillaume.desmottes at collabora.co.uk>
Date:   Thu May  8 15:18:27 2014 +0200

stop hardcoding python's path in .py scripts

https://bugs.freedesktop.org/show_bug.cgi?id=76495

---

 tests/all-errors-documented.py      |    2 +-
 tools/c-constants-gen.py            |    2 +-
 tools/glib-client-gen.py            |    2 +-
 tools/glib-client-marshaller-gen.py |    2 +-
 tools/glib-errors-check-gen.py      |    2 +-
 tools/glib-errors-str-gen.py        |    2 +-
 tools/glib-ginterface-gen.py        |    2 +-
 tools/glib-gtypes-generator.py      |    2 +-
 tools/glib-interfaces-gen.py        |    2 +-
 tools/gobject-foo.py                |    2 +-
 tools/make-version-script.py        |    2 +-
 tools/manager-file.py               |    2 +-
 tools/xincludator.py                |    2 +-
 13 files changed, 13 insertions(+), 13 deletions(-)

diff --git a/tests/all-errors-documented.py b/tests/all-errors-documented.py
index ae66df5..911dc76 100755
--- a/tests/all-errors-documented.py
+++ b/tests/all-errors-documented.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python2
 # Check if all the errors have been added to
 # docs/reference/telepathy-glib-sections.txt
 
diff --git a/tools/c-constants-gen.py b/tools/c-constants-gen.py
index a08afee..9467e43 100644
--- a/tools/c-constants-gen.py
+++ b/tools/c-constants-gen.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python2
 
 from sys import argv, stdout, stderr
 import xml.dom.minidom
diff --git a/tools/glib-client-gen.py b/tools/glib-client-gen.py
index b7edbc0..ea4197e 100644
--- a/tools/glib-client-gen.py
+++ b/tools/glib-client-gen.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python2
 
 # glib-client-gen.py: "I Can't Believe It's Not dbus-binding-tool"
 #
diff --git a/tools/glib-client-marshaller-gen.py b/tools/glib-client-marshaller-gen.py
index cd9823b..2d0a6e3 100644
--- a/tools/glib-client-marshaller-gen.py
+++ b/tools/glib-client-marshaller-gen.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python2
 
 import sys
 import xml.dom.minidom
diff --git a/tools/glib-errors-check-gen.py b/tools/glib-errors-check-gen.py
index 3cc8a5a..80bbefe 100644
--- a/tools/glib-errors-check-gen.py
+++ b/tools/glib-errors-check-gen.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python2
 
 import sys
 import xml.dom.minidom
diff --git a/tools/glib-errors-str-gen.py b/tools/glib-errors-str-gen.py
index ddb1e16..67d7fb0 100644
--- a/tools/glib-errors-str-gen.py
+++ b/tools/glib-errors-str-gen.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python2
 
 import sys
 import xml.dom.minidom
diff --git a/tools/glib-ginterface-gen.py b/tools/glib-ginterface-gen.py
index c0ce20d..b7b0ffb 100644
--- a/tools/glib-ginterface-gen.py
+++ b/tools/glib-ginterface-gen.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python2
 
 # glib-ginterface-gen.py: service-side interface generator
 #
diff --git a/tools/glib-gtypes-generator.py b/tools/glib-gtypes-generator.py
index 1477bd3..05f026c 100644
--- a/tools/glib-gtypes-generator.py
+++ b/tools/glib-gtypes-generator.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python2
 
 # Generate GLib GInterfaces from the Telepathy specification.
 # The master copy of this program is in the telepathy-glib repository -
diff --git a/tools/glib-interfaces-gen.py b/tools/glib-interfaces-gen.py
index b67d7b4..7d68b35 100644
--- a/tools/glib-interfaces-gen.py
+++ b/tools/glib-interfaces-gen.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python2
 
 from sys import argv, stdout, stderr
 import xml.dom.minidom
diff --git a/tools/gobject-foo.py b/tools/gobject-foo.py
index a2abd76..34120b6 100644
--- a/tools/gobject-foo.py
+++ b/tools/gobject-foo.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python2
 
 # gobject-foo.py: generate standard GObject type macros etc.
 #
diff --git a/tools/make-version-script.py b/tools/make-version-script.py
index 4ced849..72b2fde 100644
--- a/tools/make-version-script.py
+++ b/tools/make-version-script.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python2
 
 """Construct a GNU ld or Debian dpkg version-script from a set of
 RFC822-style symbol lists.
diff --git a/tools/manager-file.py b/tools/manager-file.py
index e1b51a6..aaa7946 100644
--- a/tools/manager-file.py
+++ b/tools/manager-file.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python2
 
 # manager-file.py: generate .manager files and TpCMParamSpec arrays from the
 # same data (should be suitable for all connection managers that don't have
diff --git a/tools/xincludator.py b/tools/xincludator.py
index f9ed49c..d63389e 100644
--- a/tools/xincludator.py
+++ b/tools/xincludator.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python2
 
 import sys
 from sys import argv, stdout, stderr



More information about the telepathy-commits mailing list