summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Maw <richard.maw@codethink.co.uk>2015-09-24 15:00:36 +0000
committerRichard Maw <richard.maw@codethink.co.uk>2015-09-24 15:00:36 +0000
commitc5298b34942685498f960ad95d12e429f1d52cd7 (patch)
tree5da5a2582764391dd3fc803455657ffee7ac2598
parent438afba4feb41fe07089358d74e6bf4e5550b57d (diff)
downloadbuildslave-scripts-c5298b34942685498f960ad95d12e429f1d52cd7.tar.gz
Strip directory part in a more primitive, but potentially working way
-rw-r--r--firehose_config.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/firehose_config.py b/firehose_config.py
index 3849633..9e96d06 100644
--- a/firehose_config.py
+++ b/firehose_config.py
@@ -8,7 +8,7 @@ LANDING_DIRS = ("examples", "genivi")
def get_landings(firehose_dir):
for landing_dir in LANDING_DIRS:
- yield [path.lstrip(landing_dir) for path in iglob(join(firehose_dir, landing_dir, '*.yaml'))]
+ yield [path[len(landing_dir):].lstrip('/') for path in iglob(join(firehose_dir, landing_dir, '*.yaml'))]
__all__ = ['get_landings']