code: def get_repo_paths(path):
      
      repo_paths = []
      dirnames = (os.path.abspath(dirname) for dirname in os.listdir(path))
      for dirname in dirnames:
          try:
              get_scm(dirname)
              repo_paths.append(dirname)
          except VCSError:
              pass
      return repo_paths
docs: Returns path's subdirectories which seems to be a repository.