diff options
author | Richard Maw <richard.maw@codethink.co.uk> | 2015-09-24 14:51:01 +0000 |
---|---|---|
committer | Richard Maw <richard.maw@codethink.co.uk> | 2015-09-24 14:51:01 +0000 |
commit | 61db5840a078a5cff3683ce9df0407c2a2d81068 (patch) | |
tree | d02a9756c1863c7ad0defa9000c32e4b864bfedb /firehose_config.py | |
parent | 5684f15acb6cb4bbac4cd3760af6924dc231e5b5 (diff) | |
download | buildslave-scripts-61db5840a078a5cff3683ce9df0407c2a2d81068.tar.gz |
Allow firehose config split into directories
Diffstat (limited to 'firehose_config.py')
-rw-r--r-- | firehose_config.py | 14 |
1 files changed, 14 insertions, 0 deletions
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'] |