def config_filename(filename):
global _ETC_PATHS<EOL>if filename.startswith('<STR_LIT:/>'):<EOL><INDENT>_LOGGER.info("<STR_LIT>" % filename)<EOL>return filename<EOL><DEDENT>import os.path<EOL>for fpath in _ETC_PATHS:<EOL><INDENT>current_path = "<STR_LIT>" % (fpath, filename)<EOL>if os.path.isfile(current_path):<EOL><INDENT>current_path = os.path.realpath(current_path)<EOL>_LOGGER.info("<STR_LIT>" % (current_path, filename))<EOL>return current_path<EOL><DEDENT><DEDENT>_LOGGER.info("<STR_LIT>" % (filename, filename))<EOL>return filename<EOL>
Obtains the first filename found that is included in one of the configuration folders.
This function returs the full path for the file.

* It is useful for files that are not config-formatted (e.g. hosts files, json, etc.)
  that will be read using other mechanisms