Skip to content

Commit

Permalink
Update config.py (fix for python 3.9 version) (#1800)
Browse files Browse the repository at this point in the history
* Update config.py (fix for python 3.9 version)

Signed-off-by: SACHIDANAND ALLE <sachidanand.alle@gmail.com>

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Signed-off-by: SACHIDANAND ALLE <sachidanand.alle@gmail.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
SachidanandAlle and pre-commit-ci[bot] authored Dec 16, 2024
1 parent 1fe0e8f commit 30e97b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion monailabel/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 30e97b4

Please sign in to comment.