VMM/VMM: Allow version/help subcommands even with missing configuration options. v0.6.x
authorPascal Volk <neverseen@users.sourceforge.net>
Mon, 01 Feb 2010 20:53:39 +0000
branchv0.6.x
changeset 182 84811fcc3c69
parent 181 866a6d679fce
child 183 eb4c73d9d0a4
VMM/VMM: Allow version/help subcommands even with missing configuration options.
VirtualMailManager/VirtualMailManager.py
--- a/VirtualMailManager/VirtualMailManager.py	Mon Feb 01 19:57:42 2010 +0000
+++ b/VirtualMailManager/VirtualMailManager.py	Mon Feb 01 20:53:39 2010 +0000
@@ -49,7 +49,7 @@
         if self.__chkCfgFile():
             self.__Cfg = Cfg(self.__cfgFileName)
             self.__Cfg.load()
-        if not os.sys.argv[1] in ['cf', 'configure']:
+        if not os.sys.argv[1] in ('cf','configure','h','help','v','version'):
             self.__Cfg.check()
             self.__chkenv()
             self.__scheme = self.__Cfg.dget('misc.password_scheme')