def __getattr__(self, name):
        ''' Customize attribute access, allow direct access to variables. '''

        # need an loophole for configuring a new instance
        if name == 'Environment':
            return Environment
        elif name == 'Entry':
            return Entry or self._Entry_class  # Py2

        if not self._sensitive:
            name = name.lower()

        try:
            #~ return Entry(name, self._envars[name])
            return self._Entry_class(name, self._envars[name])  # Py2 compat
        except KeyError as err:
            if self._blankify:
                return self._envars.setdefault(name, Entry('', ''))
            elif self._noneify:
                return None
            else:
                raise AttributeError(name)
def __getattr__ ( self , name ) : if name == 'Environment' : return Environment elif name == 'Entry' : return Entry or self . _Entry_class if not self . _sensitive : name = name . lower ( ) try : return self . _Entry_class ( name , self . _envars [ name ] ) except KeyError as err : if self . _blankify : return self . _envars . setdefault ( name , Entry ( '' , '' ) ) elif self . _noneify : return None else : raise AttributeError ( name )
Customize attribute access, allow direct access to variables.