diff options
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..a6f6205 --- /dev/null +++ b/firehose_config.py @@ -0,0 +1,14 @@ + +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))) + + +__all__ = ['get_landings'] |