vmm
changeset 760 b678a1c43027
parent 748 659c4476c57c
child 761 e4e656f19771
equal deleted inserted replaced
748:659c4476c57c 760:b678a1c43027
     1 #!/usr/bin/env python
       
     2 # -*- coding: UTF-8 -*-
       
     3 # Copyright 2007 - 2014, Pascal Volk
       
     4 # See COPYING for distribution information.
       
     5 
       
     6 """This is the vmm main script."""
       
     7 
       
     8 import sys
       
     9 
       
    10 if __name__ == '__main__':
       
    11     # replace the script's cwd (/usr/local/sbin) with our module dir
       
    12     # (the location of the VirtualMailManager directory) - if it is
       
    13     # not in sys.path
       
    14     #sys.path[0] = '/usr/local/lib/vmm'
       
    15     # Otherwise just remove /usr/local/sbin from sys.path
       
    16     sys.path.remove(sys.path[0])
       
    17     from VirtualMailManager.cli.main import run
       
    18     sys.exit(run(sys.argv))