From c5298b34942685498f960ad95d12e429f1d52cd7 Mon Sep 17 00:00:00 2001 From: Richard Maw Date: Thu, 24 Sep 2015 15:00:36 +0000 Subject: Strip directory part in a more primitive, but potentially working way --- firehose_config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'] -- cgit v1.2.1