Commit 22f52cc8 authored by VIGNET Pierre's avatar VIGNET Pierre
Browse files

[cmd] Do not use extra package for __version__; use pkg_ressource

parent 9f1f3927
......@@ -32,7 +32,7 @@ from functools import wraps
# Custom imports
import cadbiom.commons as cm
import importlib_metadata
from pkg_resources import get_distribution
LOGGER = cm.logger()
parser = None
......@@ -377,7 +377,7 @@ def main():
parser.add_argument("-vv", "--verbose", nargs="?", default="info")
parser.add_argument(
"-V", "--version", action="version",
version="%(prog)s " + importlib_metadata.version('cadbiom_cmd')
version="%(prog)s " + get_distribution('cadbiom_cmd').version
)
# Subparsers and ability to get the current subcommand name
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment