pack-upload: Don't only load pack sub dir

Change-Id: I9282a14abd467ebb75eaae7b477f7f7ee3caafe2
This commit is contained in:
aviau 2015-06-19 16:44:18 -04:00
parent 5ce74f6ca4
commit f5416d17cb

View File

@ -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')
]