summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2012-12-05 00:31:51 +0000
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2012-12-05 00:31:51 +0000
commitf7dbef0bc585fd12a6d2aa59c16bb76dff3f029f (patch)
tree98ae3ee62412fada45bf5be3d73363c65ff8bd21
parentef81656a39eca59f4758c7e8432418b2a61931fb (diff)
downloadpykolab-f7dbef0bc585fd12a6d2aa59c16bb76dff3f029f.tar.gz
Update ucs/listener to append a correct sys.path
-rwxr-xr-xucs/listener.py11
1 files changed, 10 insertions, 1 deletions
diff --git a/ucs/listener.py b/ucs/listener.py
index 7511523..ea19d02 100755
--- a/ucs/listener.py
+++ b/ucs/listener.py
@@ -28,7 +28,16 @@ import sys
import univention_baseconfig
import univention.debug as ulog
-sys.path = [ '/root/pykolab.git/' ] + sys.path
+sys.path = [
+ os.path.abspath(
+ os.path.join(
+ os.path.dirname(
+ os.path.realpath(os.path.abspath(__file__))
+ ),
+ '..'
+ )
+ ) ] + sys.path
+
#sys.stderr = open('/dev/null', 'a')
name = 'kolab'