From a694f3164cca2ddbfa1f9e271e6f7fcae7cd5ee4 Mon Sep 17 00:00:00 2001 From: Alex Huszagh Date: Sun, 1 May 2022 01:17:19 -0500 Subject: [PATCH] All extension discovery without stylesheets. --- configure.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/configure.py b/configure.py index fa717d5..cdd20e9 100644 --- a/configure.py +++ b/configure.py @@ -145,8 +145,14 @@ def parse_extensions(args): values = split_csv(args.extensions) if 'all' in values: - files = glob.glob(f'{home}/extension/*/*stylesheet.qss.in') - values = [os.path.basename(os.path.dirname(i)) for i in files] + values = [] + for dirname in os.listdir(f'{home}/extension'): + ext = f'{home}/extension/{dirname}' + ext_files = ('stylesheet.qss.in', 'icons.json') + paths = [f'{ext}/{i}' for i in ext_files] + if os.path.isdir(ext) and any(os.path.exists(i) for i in paths): + values.append(dirname) + args.extensions = values def parse_hexcolor(color):