Skip to content

Commit

Permalink
Only look for a config file in the root of the executable and in the …
Browse files Browse the repository at this point in the history
…assets directory of the application
  • Loading branch information
tsterbak committed May 1, 2023
1 parent be8d660 commit 076b060
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openandroidinstaller/installer_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 076b060

Please sign in to comment.