From 61db5840a078a5cff3683ce9df0407c2a2d81068 Mon Sep 17 00:00:00 2001 From: Richard Maw Date: Thu, 24 Sep 2015 14:51:01 +0000 Subject: Allow firehose config split into directories --- firehose_config.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 firehose_config.py (limited to 'firehose_config.py') diff --git a/firehose_config.py b/firehose_config.py new file mode 100644 index 0000000..6acb639 --- /dev/null +++ b/firehose_config.py @@ -0,0 +1,14 @@ + +from glob import glob +from os.path import join + + +LANDING_DIRS = ("examples", "genivi") + + +def get_landings(firehose_dir): + for landing_dir in LANDING_DIRS: + yield glob(join(direhose_dir, landing_dir, '*.yaml')) + + +__all__ = ['get_landings'] -- cgit v1.2.1