Fix the unity-lens for the new python module setup
This commit is contained in:
parent
9eb77d032c
commit
0ad84b575f
@ -9,7 +9,13 @@ import locale
|
|||||||
|
|
||||||
from gi.repository import Unity, GObject, Gio
|
from gi.repository import Unity, GObject, Gio
|
||||||
|
|
||||||
import recoll
|
try:
|
||||||
|
from recoll import recoll
|
||||||
|
from recoll import rclextract
|
||||||
|
hasextract = True
|
||||||
|
except:
|
||||||
|
import recoll
|
||||||
|
hasextract = False
|
||||||
|
|
||||||
BUS_PATH = "/org/recoll/unitylensrecoll/scope/main"
|
BUS_PATH = "/org/recoll/unitylensrecoll/scope/main"
|
||||||
|
|
||||||
@ -68,7 +74,8 @@ class Scope (Unity.Scope):
|
|||||||
try:
|
try:
|
||||||
self.db = recoll.connect()
|
self.db = recoll.connect()
|
||||||
self.db.setAbstractParams(maxchars=200, contextwords=4)
|
self.db.setAbstractParams(maxchars=200, contextwords=4)
|
||||||
except:
|
except Exception, s:
|
||||||
|
print >> sys.stderr, "recoll-lens: Error connecting to db:", s
|
||||||
return
|
return
|
||||||
|
|
||||||
def get_search_string (self):
|
def get_search_string (self):
|
||||||
|
|||||||
@ -41,6 +41,9 @@ if test -n "$DESTDIR" ; then
|
|||||||
mandir=$DESTDIR/$mandir
|
mandir=$DESTDIR/$mandir
|
||||||
ROOTFORPYTHON="--root=${DESTDIR}"
|
ROOTFORPYTHON="--root=${DESTDIR}"
|
||||||
fi
|
fi
|
||||||
|
if test -f /etc/debian_version ; then
|
||||||
|
OPTSFORPYTHON=--install-layout=deb
|
||||||
|
fi
|
||||||
|
|
||||||
echo "Installing to $PREFIX"
|
echo "Installing to $PREFIX"
|
||||||
|
|
||||||
@ -140,4 +143,4 @@ ${INSTALL} -m 0444 ${I18N}/recoll_zh_CN.qm \
|
|||||||
|
|
||||||
|
|
||||||
@NOPYTHON@(cd python/recoll;python setup.py install \
|
@NOPYTHON@(cd python/recoll;python setup.py install \
|
||||||
@NOPYTHON@ --prefix=${REALPREFIX} ${ROOTFORPYTHON})
|
@NOPYTHON@ --prefix=${REALPREFIX} ${ROOTFORPYTHON} ${OPTSFORPYTHON})
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user