vmm
author Pascal Volk <user@localhost.localdomain.org>
Mon, 27 Aug 2012 20:49:31 +0000
changeset 594 cdbe200c0ecc
parent 569 54a84a311654
child 645 fcc3f100e56a
child 675 d24f094d1cb5
permissions -rwxr-xr-x
VMM/serviceset: Fixed a conditional ProgrammingError. Affects only setups with Dovecot < v1.2.beta2. Actually the SQL query in method ServiceSet._load_by_services wasn't updated. Removed unnecessary code, which would have also produced a ProgrammingError, if it would have been correct.

#!/usr/bin/env python
# -*- coding: UTF-8 -*-
# Copyright 2007 - 2012, Pascal Volk
# See COPYING for distribution information.

"""This is the vmm main script."""

import sys

if __name__ == '__main__':
    # replace the script's cwd (/usr/local/sbin) with our module dir
    # (the location of the VirtualMailManager directory) - if it is
    # not in sys.path
    #sys.path[0] = '/usr/local/lib/vmm'
    # Otherwise just remove /usr/local/sbin from sys.path
    sys.path.remove(sys.path[0])
    from VirtualMailManager.cli.main import run
    sys.exit(run(sys.argv))