Skip to content

Commit d7b1f3c

Browse files
committed
Imported importlib.metadata and updated version
reading
1 parent 2dfc287 commit d7b1f3c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

metaseg/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
# This source code is licensed under the license found in the
55
# LICENSE file in the root directory of this source tree.
66

7+
import importlib.metadata as importlib_metadata
8+
79
from .falai_predictor import automask_image as automask_image
810
from .falai_predictor import falai_automask_image as falai_automask_image
911
from .falai_predictor import falai_manuelmask_image as falai_manuelmask_image
@@ -13,8 +15,6 @@
1315
from .sam_predictor import SegAutoMaskPredictor as SegAutoMaskPredictor
1416
from .sam_predictor import SegManualMaskPredictor as SegManualMaskPredictor
1517

16-
import importlib.metadata as importlib_metadata
17-
1818
try:
1919
# This will read version from pyproject.toml
2020
__version__ = importlib_metadata.version(__package__ or __name__)

0 commit comments

Comments
 (0)