/usr/sbin/kolab prepends a dot to the system path. According to an inline comment, this seems to be done for development purposes. We stumbled across this when the plugins mechanism in plugins/__init__.py is importing the pdb debugger (is there really a need for this?) and pdb in turn imports a python module named cmd. If you happen to have a different module by this name in the current directory, the kolab command fails badly:
Traceback (most recent call last): File "/usr/sbin/kolab", line 29, in <module> from pykolab.cli import Cli File "/usr/lib/python2.7/dist-packages/pykolab/cli/__init__.py", line 33, in <module> import pykolab.plugins File "/usr/lib/python2.7/dist-packages/pykolab/plugins/__init__.py", line 22, in <module> import pdb File "/usr/lib/python2.7/pdb.py", line 59, in <module> class Pdb(bdb.Bdb, cmd.Cmd): AttributeError: 'module' object has no attribute 'Cmd'
This patch simply comments the path manipulation.