(self, user_cfile, ignore_keys=None)
Override values from config file
Override values from config file
Override values from config file
def _file_override(self, user_cfile, ignore_keys=None):
        """
        Override values from config file
        """
        if os.path.exists('/etc/' + Config.conf['config']):
            self._conf_file_read('/etc/' + Config.conf['config'], ignore_keys)

        cfpath = Config.conf['homedir'] + '/' + Config.conf['config']
        if os.path.exists(cfpath):
            self._conf_file_read(cfpath, ignore_keys)

        if Config.conf['topdir'] != Config.conf['homedir']:
            cfpath = Config.conf['topdir'] + '/'  + Config.conf['config']
            if os.path.exists(cfpath):
                self._conf_file_read(cfpath, ignore_keys)

        if os.path.exists(user_cfile):
            self._conf_file_read(user_cfile, ignore_keys)
def _file_override ( self , user_cfile , ignore_keys = None ) : if os . path . exists ( '/etc/' + Config . conf [ 'config' ] ) : self . _conf_file_read ( '/etc/' + Config . conf [ 'config' ] , ignore_keys ) cfpath = Config . conf [ 'homedir' ] + '/' + Config . conf [ 'config' ] if os . path . exists ( cfpath ) : self . _conf_file_read ( cfpath , ignore_keys ) if Config . conf [ 'topdir' ] != Config . conf [ 'homedir' ] : cfpath = Config . conf [ 'topdir' ] + '/' + Config . conf [ 'config' ] if os . path . exists ( cfpath ) : self . _conf_file_read ( cfpath , ignore_keys ) if os . path . exists ( user_cfile ) : self . _conf_file_read ( user_cfile , ignore_keys )