code: def locations(self, exists=True):
          
          result = []
          for config_files in self.config_paths:
              if not config_files:
                  continue
              if os.path.isdir(config_files):
                  config_files = [os.path.join(config_files, i)
                                  for i in sorted(os.listdir(config_files))
                                  if i.endswith('.conf')]
              else:
                  config_files = [config_files]
              for config_file in config_files:
                  if not exists or os.path.exists(config_file):
                      config_file = os.path.abspath(config_file)
                      if config_file in result:
                          result.remove(config_file)
                      result.append(config_file)
          return result
docs: Return the location of the config file(s).
  
              A given directory will be scanned for ``*.conf`` files, in alphabetical order.
              Any duplicates will be eliminated.
  
              If ``exists`` is True, only existing configuration locations are returned.