blob: 9e96d06aeba1dfbde58d0de40991a2b2c54844fc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
from glob import iglob
from os.path import join
LANDING_DIRS = ("examples", "genivi")
def get_landings(firehose_dir):
for landing_dir in LANDING_DIRS:
yield [path[len(landing_dir):].lstrip('/') for path in iglob(join(firehose_dir, landing_dir, '*.yaml'))]
__all__ = ['get_landings']
|