equal
deleted
inserted
replaced
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)) |
|