equal
deleted
inserted
replaced
7 |
7 |
8 import sys |
8 import sys |
9 |
9 |
10 if __name__ == '__main__': |
10 if __name__ == '__main__': |
11 # replace the script's cwd (/usr/local/sbin) with our module dir |
11 # replace the script's cwd (/usr/local/sbin) with our module dir |
12 # (the location of the VirtualMailManager directory) |
12 # (the location of the VirtualMailManager directory) - if it is |
13 sys.path[0] = '/usr/local/lib/vmm' |
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]) |
14 from VirtualMailManager.cli.main import run |
17 from VirtualMailManager.cli.main import run |
15 sys.exit(run(sys.argv)) |
18 sys.exit(run(sys.argv)) |