From 684c339309f8a845d9bcb027e2684de056e47eb3 Mon Sep 17 00:00:00 2001 From: WerWolv Date: Thu, 22 Feb 2024 21:31:05 +0100 Subject: [PATCH] tests: Ignore files in plugins folder when checking languages --- tests/check_langs.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/check_langs.py b/tests/check_langs.py index 90a518d22..b2f0cc4eb 100644 --- a/tests/check_langs.py +++ b/tests/check_langs.py @@ -67,6 +67,10 @@ exit_ok &= check_langs("./main", ui_langs, None) for plugin in os.listdir("./plugins"): if plugin == "ui": continue - exit_ok &= check_langs(f"./plugins/{plugin}", ui_langs, f"./plugins/{plugin}/romfs/lang/en_US.json") + + path = f"./plugins/{plugin}" + if not os.path.isdir(path): continue + + exit_ok &= check_langs(path, ui_langs, f"./plugins/{plugin}/romfs/lang/en_US.json") sys.exit(0 if exit_ok else 1)