vmm
author Pascal Volk <user@localhost.localdomain.org>
Tue, 27 Aug 2013 21:13:28 +0000
changeset 699 4c8e15c2f01b
parent 675 d24f094d1cb5
child 676 2bc11dada296
child 703 58815c004a61
permissions -rwxr-xr-x
doc/web: Removed layout.html template.

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