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