diff options
author | Richard Maw <richard.maw@codethink.co.uk> | 2015-09-24 14:59:20 +0000 |
---|---|---|
committer | Richard Maw <richard.maw@codethink.co.uk> | 2015-09-24 14:59:20 +0000 |
commit | 438afba4feb41fe07089358d74e6bf4e5550b57d (patch) | |
tree | 2c1636253293393c7f75dbe44db4e7b7b64c147e | |
parent | 32e7b4992cbc158becbca5a3a7af684b0cc51dce (diff) | |
download | buildslave-scripts-438afba4feb41fe07089358d74e6bf4e5550b57d.tar.gz |
It's a list not a string
-rw-r--r-- | firehose_config.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/firehose_config.py b/firehose_config.py index 30de375..3849633 100644 --- a/firehose_config.py +++ b/firehose_config.py @@ -1,5 +1,5 @@ -from glob import glob +from glob import iglob from os.path import join @@ -8,7 +8,7 @@ LANDING_DIRS = ("examples", "genivi") def get_landings(firehose_dir): for landing_dir in LANDING_DIRS: - yield glob(join(firehose_dir, landing_dir, '*.yaml')).lstrip(landing_dir) + yield [path.lstrip(landing_dir) for path in iglob(join(firehose_dir, landing_dir, '*.yaml'))] __all__ = ['get_landings'] |