def __init__ (self, filename=None, data=None, config=None, pathvars=None):
        """Creates a new AitConfig object with configuration data read from
        the given YAML configuration file or passed-in via the given
        config dictionary.

        If filename and data are not given, it defaults to the following in
        order depending on the presence of environment variables::

            ${AIT_CONFIG}

        """
        self._filename = None
        self._data = data
        self._datetime = time.gmtime()
        self._pathvars = pathvars

        if data is None and filename is None:
            if 'AIT_CONFIG' in os.environ:
                filename = os.path.abspath(os.environ.get('AIT_CONFIG'))
            else:
                msg = 'AIT_CONFIG is not set. Exiting ...'
                log.error(msg)
                raise ValueError(msg)

        if config is None:
            self.reload(filename, data)
        else:
            self._config   = config
            self._filename = filename
def __init__ ( self , filename = None , data = None , config = None , pathvars = None ) : self . _filename = None self . _data = data self . _datetime = time . gmtime ( ) self . _pathvars = pathvars if data is None and filename is None : if 'AIT_CONFIG' in os . environ : filename = os . path . abspath ( os . environ . get ( 'AIT_CONFIG' ) ) else : msg = 'AIT_CONFIG is not set. Exiting ...' log . error ( msg ) raise ValueError ( msg ) if config is None : self . reload ( filename , data ) else : self . _config = config self . _filename = filename
Creates a new AitConfig object with configuration data read from
        the given YAML configuration file or passed-in via the given
        config dictionary.

        If filename and data are not given, it defaults to the following in
        order depending on the presence of environment variables::

            ${AIT_CONFIG}