-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
solve circular import with __version__
- Loading branch information
Showing
3 changed files
with
16 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,7 @@ | ||
import importlib.metadata as _importlib_metadata | ||
|
||
from . import qpe | ||
from . import common | ||
from . import database | ||
from . import ml | ||
from . import performance | ||
|
||
# Get the version | ||
try: | ||
__version__ = _importlib_metadata.version("rainforest_mch") | ||
except _importlib_metadata.PackageNotFoundError: | ||
# package is not installed | ||
__version__ = "0.0.0" | ||
|
||
__version__ = common.utils.get_version() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters