From f432ae8e47a54cfc13c31f0160747978bcbbe95c Mon Sep 17 00:00:00 2001 From: Thomas Vander Stichele Date: Mon, 15 Mar 2010 14:23:45 +0000 Subject: [PATCH] * bin/rip.in: Add our PYTHONLIBDIR to sys.path if needed. Should make this work when doing ./configure; sudo checkinstall make install on e.g. Ubuntu. --- ChangeLog | 7 +++++++ bin/rip.in | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/ChangeLog b/ChangeLog index 78981a8..8ec55ff 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2010-03-15 Thomas Vander Stichele + + * bin/rip.in: + Add our PYTHONLIBDIR to sys.path if needed. Should make this + work when doing ./configure; sudo checkinstall make install + on e.g. Ubuntu. + 2010-03-15 Thomas Vander Stichele * configure.ac: diff --git a/bin/rip.in b/bin/rip.in index e00d555..1ce5eb9 100755 --- a/bin/rip.in +++ b/bin/rip.in @@ -4,6 +4,13 @@ import sys +# /usr/local/bin typically is on PATH, making it possible to find this file. +# However, /usr/local/lib/pythonX.Y/*-packages usually isn't, so let's +# make sure here it is. + +if not "@PYTHONLIBDIR@" in sys.path: + sys.path.append("@PYTHONLIBDIR@") + # first try to import morituri try: import morituri