diff options
author | Ryan Lortie <desrt@desrt.ca> | 2013-12-09 13:17:55 -0500 |
---|---|---|
committer | Shaun McCance <shaunm@gnome.org> | 2013-12-11 12:09:19 -0500 |
commit | 1cce05f8c3d2b52f030b3e253d37ae5a6eee8003 (patch) | |
tree | c22618c5559c92cb92b47d96beef2caa2a953a9d | |
parent | 46067ed60cbe1e5e3efe176da1f40f8219336490 (diff) | |
download | itstool-1cce05f8c3d2b52f030b3e253d37ae5a6eee8003.tar.gz |
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
-rw-r--r-- | configure.ac | 2 | ||||
-rwxr-xr-x | itstool.in | 2 |
2 files changed, 3 insertions, 1 deletions
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 @@ -1,4 +1,4 @@ -#!/usr/bin/python -s +#!@PYTHON@ -s # # Copyright (c) 2010-2011 Shaun McCance <shaunm@gnome.org> # |