vmm
branchv0.6.x
changeset 569 54a84a311654
parent 568 14abdd04ddf5
child 645 fcc3f100e56a
child 675 d24f094d1cb5
equal deleted inserted replaced
568:14abdd04ddf5 569:54a84a311654
     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))