__init__.py 433 B

1234567891011
  1. import os
  2. from rosdistro import get_index
  3. INDEX_V4_YAML = os.path.normpath(os.path.join(
  4. os.path.dirname(os.path.abspath(__file__)), '..', 'index-v4.yaml'))
  5. index_v4 = get_index('file://' + os.path.abspath(INDEX_V4_YAML))
  6. dist_names_v4 = list(sorted(index_v4.distributions.keys()))
  7. eol_distro_names = [
  8. dist_name for dist_name in dist_names_v4 if index_v4.distributions[dist_name]['distribution_status'] == 'end-of-life']