From b30d5950676f3d2fec32280ad7b76cad53e7c7ba Mon Sep 17 00:00:00 2001 From: Ryan Lortie Date: Mon, 9 Dec 2013 13:17:55 -0500 Subject: [PATCH] Don't hardcode python path Instead, use automake to find it at runtime and put #!@PYTHON@ at the top of itstool.in. https://bugs.freedesktop.org/show_bug.cgi?id=72533 --- configure.ac | 2 ++ itstool.in | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index c17d412..ef0180b 100644 --- a/configure.ac +++ b/configure.ac @@ -10,6 +10,8 @@ DATADIR=`( )` AC_SUBST([DATADIR]) +AM_PATH_PYTHON([2.6]) + py_module=libxml2 AC_MSG_CHECKING(for python module $py_module) echo "import $py_module" | python - &>/dev/null diff --git a/itstool.in b/itstool.in index a04ab2b..b79f1b6 100755 --- a/itstool.in +++ b/itstool.in @@ -1,4 +1,4 @@ -#!/usr/bin/python -s +#!@PYTHON@ -s # # Copyright (c) 2010-2011 Shaun McCance # -- 1.8.4.2