From 4de5e3809fc6ace683075c792cfc8e02b12b4504 Mon Sep 17 00:00:00 2001 From: moi15moi Date: Thu, 8 Jun 2023 21:02:43 -0400 Subject: [PATCH 1/2] Correct android version detector --- find_system_fonts_filename/fonts_filename.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/find_system_fonts_filename/fonts_filename.py b/find_system_fonts_filename/fonts_filename.py index 40d880a..336536c 100644 --- a/find_system_fonts_filename/fonts_filename.py +++ b/find_system_fonts_filename/fonts_filename.py @@ -13,7 +13,7 @@ def get_system_fonts_filename() -> Set[str]: elif system_name == "Linux": # ANDROID_ROOT or ANDROID_BOOTLOGO - https://stackoverflow.com/a/66174754/15835974 - if any(t in environ.values() for t in ("ANDROID_ROOT", "ANDROID_BOOTLOGO")): + if any(t in environ.keys() for t in ("ANDROID_ROOT", "ANDROID_BOOTLOGO")): from .android_fonts import AndroidFonts return AndroidFonts.get_system_fonts_filename() else: From d4d9ca3434d96dc61ed9bd7b6c6dd33bccd4416e Mon Sep 17 00:00:00 2001 From: moi15moi Date: Thu, 8 Jun 2023 21:03:15 -0400 Subject: [PATCH 2/2] Bump version to 0.1.1 --- find_system_fonts_filename/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/find_system_fonts_filename/__init__.py b/find_system_fonts_filename/__init__.py index 21e08eb..38930de 100644 --- a/find_system_fonts_filename/__init__.py +++ b/find_system_fonts_filename/__init__.py @@ -1,4 +1,4 @@ from .fonts_filename import get_system_fonts_filename from .exceptions import AndroidLibraryNotFound, FontConfigNotFound, OSNotSupported -__version__ = "0.1.0" +__version__ = "0.1.1"