From f5416d17cb7bd99d0f39b69f19f5949b279e667b Mon Sep 17 00:00:00 2001 From: aviau Date: Fri, 19 Jun 2015 16:44:18 -0400 Subject: [PATCH] pack-upload: Don't only load pack sub dir Change-Id: I9282a14abd467ebb75eaae7b477f7f7ee3caafe2 --- surveil/cmd/pack_upload.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/surveil/cmd/pack_upload.py b/surveil/cmd/pack_upload.py index 2a7fa6f..b34d419 100644 --- a/surveil/cmd/pack_upload.py +++ b/surveil/cmd/pack_upload.py @@ -39,13 +39,12 @@ def main(): (options, args) = parser.parse_known_args(sys.argv[1:]) pack_dir = options.pack[0] - pack_sub_dir = os.path.join(pack_dir, 'pack') pack_name = os.path.basename(os.path.normpath(pack_dir)) # Find the .cfg files cfg_files = [ os.path.join(dirpath, f) - for dirpath, dirnames, files in os.walk(pack_sub_dir) + for dirpath, dirnames, files in os.walk(pack_dir) for f in fnmatch.filter(files, '*.cfg') ]