diff options
author | Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com> | 2012-12-05 00:31:51 +0000 |
---|---|---|
committer | Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com> | 2012-12-05 00:31:51 +0000 |
commit | f7dbef0bc585fd12a6d2aa59c16bb76dff3f029f (patch) | |
tree | 98ae3ee62412fada45bf5be3d73363c65ff8bd21 /ucs | |
parent | ef81656a39eca59f4758c7e8432418b2a61931fb (diff) | |
download | pykolab-f7dbef0bc585fd12a6d2aa59c16bb76dff3f029f.tar.gz |
Update ucs/listener to append a correct sys.path
Diffstat (limited to 'ucs')
-rwxr-xr-x | ucs/listener.py | 11 |
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' |