'Find as many configuration files as should be processed for this
platform, and return a list of filenames in the order in which they
should be parsed.  The filenames returned are guaranteed to exist
(modulo nasty race conditions).
There are three possible config files: distutils.cfg in the
Distutils installation directory (ie. where the top-level
Distutils __inst__.py file lives), a file in the user\'s home
directory named .pydistutils.cfg on Unix and pydistutils.cfg
on Windows/Mac; and setup.cfg in the current directory.
The file in the user\'s home directory can be disabled with the
--no-user-cfg option.'

def find_config_files(self):

    files = []
    check_environ()
    sys_dir = os.path.dirname(sys.modules['distutils'].__file__)
    sys_file = os.path.join(sys_dir, 'distutils.cfg')
    if os.path.isfile(sys_file):
        files.append(sys_file)
    if (os.name == 'posix'):
        user_filename = '.pydistutils.cfg'
    else:
        user_filename = 'pydistutils.cfg'
    if self.want_user_cfg:
        user_file = os.path.join(os.path.expanduser('~'), user_filename)
        if os.path.isfile(user_file):
            files.append(user_file)
    local_file = 'setup.cfg'
    if os.path.isfile(local_file):
        files.append(local_file)
    if DEBUG:
        self.announce(('using    config    files:    %s' % ',    '.join(files)))
    return files
