vmm
author Pascal Volk <user@localhost.localdomain.org>
Sun, 30 Dec 2012 16:12:18 +0000
branchv0.7.x
changeset 666 50148adebee9
parent 645 fcc3f100e56a
child 676 2bc11dada296
permissions -rwxr-xr-x
VMM/cli/main: Adjusted to new argparse functionality.

#!/usr/bin/env python3
# -*- 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())