vmm
author Pascal Volk <user@localhost.localdomain.org>
Mon, 09 Jun 2014 18:47:44 +0000
branchv0.7.x
changeset 756 139ced0fea1e
parent 713 74ee0a62039c
permissions -rwxr-xr-x
VMM: Unified parameter names and option names. handler: Handler.user_delete() renamed parameter: delete_home -> del_dir The same as in Handler.domain_delete(). cli/subcommands: renamed userdelete's option --delete-home -> --delete-directory So people have to memorize only one option name. It also matches the setting names of vmm.cfg.

#!/usr/bin/env python3
# -*- coding: UTF-8 -*-
# Copyright 2007 - 2014, 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))