def existing_config_files():
global _ETC_PATHS<EOL>global _MAIN_CONFIG_FILE<EOL>global _CONFIG_VAR_INCLUDE<EOL>global _CONFIG_FILTER<EOL>config_files = []<EOL>for possible in _ETC_PATHS:<EOL><INDENT>config_files = config_files + glob.glob("<STR_LIT>" % (possible, _MAIN_CONFIG_FILE))<EOL><DEDENT>if _CONFIG_VAR_INCLUDE != "<STR_LIT>":<EOL><INDENT>main_config = Configuration("<STR_LIT>", {<EOL>_CONFIG_VAR_INCLUDE:"<STR_LIT>"<EOL>}, _MAIN_CONFIG_FILE)<EOL>if main_config.CONFIG_DIR != "<STR_LIT>":<EOL><INDENT>for possible in _ETC_PATHS:<EOL><INDENT>config_files = config_files + glob.glob("<STR_LIT>" % (possible, main_config.CONFIG_DIR, _CONFIG_FILTER))<EOL><DEDENT><DEDENT><DEDENT>return config_files<EOL>
Method that calculates all the configuration files that are valid, according to the
'set_paths' and other methods for this module.