Description: Make Bokken available for wide system use.
 This allows the repo to be run locally but makes Bokken only able to run
 inside a normal system directory.  Also fixes use of Pyew.
Author: David Martínez Moreno <ender@debian.org>
Forwarded: not-needed
Last-Update: <2011-12-01>

--- a/bokken
+++ b/bokken
@@ -2,7 +2,7 @@
 
 PYTHON_EXECUTABLE="python"
 PYTHON_VER=`python -V 2>&1 |sed 's,Python \(.\)\..*,\1,'`
-BOKKEN_DIR=`dirname $0`
+BOKKEN_DIR="/usr/share/pyshared/bokken/"
 
 if [ "$PYTHON_VER" -eq 3 ];then
     # The python executable points to Python 3.
--- a/ui/core.py
+++ b/ui/core.py
@@ -23,6 +23,9 @@
 import cookielib
 import urllib2
 
+# We add this directory as Debian is really distributing pyew inside one.
+sys.path.append('/usr/share/pyshared/pyew')
+
 import ui.html_parser as html_parser
 from hashlib import md5, sha1, sha256
 try:
