[glib] Use env to run the Python-based tools
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] Use env to run the Python-based tools
- Date: Fri, 14 Jul 2017 20:22:46 +0000 (UTC)
commit 4395a8977727e2c569b472dbe8710ffb87c219e2
Author: Emmanuele Bassi <ebassi gnome org>
Date: Fri Jul 14 21:21:33 2017 +0100
Use env to run the Python-based tools
Otherwise overriding the Python interpreter with `--with-python` won't
work correctly.
gobject/glib-genmarshal.in | 2 +-
gobject/glib-mkenums.in | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gobject/glib-genmarshal.in b/gobject/glib-genmarshal.in
index 9a39a53..6ce33d0 100755
--- a/gobject/glib-genmarshal.in
+++ b/gobject/glib-genmarshal.in
@@ -1,4 +1,4 @@
-#!@PYTHON@
+#!/usr/bin/env @PYTHON@
# pylint: disable=too-many-lines, missing-docstring, invalid-name
diff --git a/gobject/glib-mkenums.in b/gobject/glib-mkenums.in
index 6aaef58..87f81cf 100755
--- a/gobject/glib-mkenums.in
+++ b/gobject/glib-mkenums.in
@@ -1,4 +1,4 @@
-#!@PYTHON@
+#!/usr/bin/env @PYTHON@
# If the code below looks horrible and unpythonic, do not panic.
#
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]