Skip to content

Commit

Permalink
Merge pull request #2295 from mashehu/improve-perf
Browse files Browse the repository at this point in the history
improve startup time by localizing the imports
  • Loading branch information
mashehu authored May 22, 2023
2 parents 733dd81 + c5f67b0 commit 5e897bd
Show file tree
Hide file tree
Showing 4 changed files with 128 additions and 137 deletions.
4 changes: 2 additions & 2 deletions nf_core/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
Shouldn't do much, as everything is under subcommands.
"""

import pkg_resources
import importlib.metadata as importlib_metadata

__version__ = pkg_resources.get_distribution("nf_core").version
__version__ = importlib_metadata.version(__name__)
Loading

0 comments on commit 5e897bd

Please sign in to comment.