From 30e97b49ce02efd0e897c55f874b5c80bf27c7aa Mon Sep 17 00:00:00 2001 From: SACHIDANAND ALLE Date: Mon, 16 Dec 2024 12:38:03 -0800 Subject: [PATCH] Update config.py (fix for python 3.9 version) (#1800) * Update config.py (fix for python 3.9 version) Signed-off-by: SACHIDANAND ALLE * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Signed-off-by: SACHIDANAND ALLE Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> --- monailabel/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/monailabel/config.py b/monailabel/config.py index 25589a400..e1efb35b7 100644 --- a/monailabel/config.py +++ b/monailabel/config.py @@ -17,7 +17,7 @@ def is_package_installed(name): - return name in sorted(x.name for x in distributions()) + return name in (x.metadata.get("Name") for x in distributions()) class Settings(BaseSettings):