summaryrefslogtreecommitdiff
path: root/firehose_config.py
blob: 625c3bd1f3814924229ca96b565c093b473cb26d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16

from os import listdir
from os.path import join


LANDING_DIRS = ("examples", "genivi")


def get_landings(firehose_dir):
    for landing_dir in LANDING_DIRS:
        yield sorted(join(landing_dir, fname)
                     for fname in listdir(join(firehose_dir, landing_dir))
                     if fname.endswith('.yaml'))


__all__ = ['get_landings']