From 076b0603786a90caab4a72a522d779e4c3b2cf08 Mon Sep 17 00:00:00 2001 From: Tobias Sterbak Date: Mon, 1 May 2023 17:36:04 +0200 Subject: [PATCH] Only look for a config file in the root of the executable and in the assets directory of the application --- openandroidinstaller/installer_config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openandroidinstaller/installer_config.py b/openandroidinstaller/installer_config.py index 70ca5a01..4768284e 100644 --- a/openandroidinstaller/installer_config.py +++ b/openandroidinstaller/installer_config.py @@ -98,7 +98,7 @@ def from_file(cls, path): def _find_config_file(device_code: str, config_path: Path) -> Optional[Path]: """Find the config file which is supported by the given device code.""" - for path in config_path.rglob("*.yaml"): + for path in config_path.glob("*.yaml"): with open(path, "r", encoding="utf-8") as stream: try: raw_config = dict(yaml.safe_load(stream))