* 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.
This commit is contained in:
Thomas Vander Stichele
2010-03-15 14:23:45 +00:00
parent 3f2b07ef1c
commit f432ae8e47
2 changed files with 14 additions and 0 deletions

View File

@@ -1,3 +1,10 @@
2010-03-15 Thomas Vander Stichele <thomas at apestaart dot org>
* 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 <thomas at apestaart dot org>
* configure.ac:

View File

@@ -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