Skip to content

Commit 30e97b4

Browse files
Update config.py (fix for python 3.9 version) (#1800)
* Update config.py (fix for python 3.9 version) Signed-off-by: SACHIDANAND ALLE <[email protected]> * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Signed-off-by: SACHIDANAND ALLE <[email protected]> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 1fe0e8f commit 30e97b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

monailabel/config.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818

1919
def is_package_installed(name):
20-
return name in sorted(x.name for x in distributions())
20+
return name in (x.metadata.get("Name") for x in distributions())
2121

2222

2323
class Settings(BaseSettings):

0 commit comments

Comments
 (0)