def envCheckFlag(self, name, default = False):
if name in self._flags:<EOL><INDENT>return self._flags[name]<EOL><DEDENT>else:<EOL><INDENT>val = self._env.get(name)<EOL>if val is None:<EOL><INDENT>return default<EOL><DEDENT>elif val.lower() in ['<STR_LIT:yes>', '<STR_LIT>']:<EOL><INDENT>self._flags[name] = True<EOL>return True<EOL><DEDENT>elif val.lower() in ['<STR_LIT>', '<STR_LIT>']:<EOL><INDENT>self._flags[name] = False<EOL>return False<EOL><DEDENT>else:<EOL><INDENT>raise AttributeError("<STR_LIT>" <EOL>% name)<EOL><DEDENT><DEDENT>
Check graph flag for enabling / disabling attributes through
        the use of <name> environment variable.

        @param name:    Name of flag.
                        (Also determines the environment variable name.)
        @param default: Boolean (True or False). Default value for flag.
        @return:        Return True if the flag is enabled.