ucs/listener.py

Jeroen van Meeuwen vanmeeuwen at kolabsys.com
Wed Dec 5 01:34:01 CET 2012


 ucs/listener.py |   11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

New commits:
commit f7dbef0bc585fd12a6d2aa59c16bb76dff3f029f
Author: Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen at kolabsys.com>
Date:   Wed Dec 5 00:31:51 2012 +0000

    Update ucs/listener to append a correct sys.path

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'





More information about the commits mailing list