diff -r 1d9bf63a86f7 -r ebc9b864bc9a VirtualMailManager/VirtualMailManager.py --- a/VirtualMailManager/VirtualMailManager.py Tue Mar 04 23:28:04 2008 +0000 +++ b/VirtualMailManager/VirtualMailManager.py Sun Apr 06 21:36:00 2008 +0000 @@ -60,7 +60,8 @@ self.__Cfg.load() self.__Cfg.check() self.__cfgSections = self.__Cfg.getsections() - self.__chkenv() + if not sys.argv[1] in ['cf', 'configure']: + self.__chkenv() def __chkCfgFile(self): """Checks the configuration file, returns bool""" @@ -89,9 +90,11 @@ self.__Cfg.get('maildir', 'base'), ERR.NO_SUCH_DIRECTORY)) for opt, val in self.__Cfg.items('bin'): if not os.path.exists(val): - raise VMMException(("%s doesn't exists.", ERR.NO_SUCH_BINARY)) + raise VMMException(("%s doesn't exists." % val, + ERR.NO_SUCH_BINARY)) elif not os.access(val, os.X_OK): - raise VMMException(("%s is not executable.", ERR.NOT_EXECUTABLE)) + raise VMMException(("%s is not executable." % val, + ERR.NOT_EXECUTABLE)) def __getFileMode(self): """Determines the file access mode from file __cfgFileName,