From 0a2813f0cb6683186caba46f0cf490fa0e709a88 Mon Sep 17 00:00:00 2001 From: Thomas Lecocq Date: Fri, 20 Sep 2024 22:27:38 +0200 Subject: [PATCH] no tree, basta ! --- msnoise/scripts/msnoise.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/msnoise/scripts/msnoise.py b/msnoise/scripts/msnoise.py index ec455ee..e8528cc 100644 --- a/msnoise/scripts/msnoise.py +++ b/msnoise/scripts/msnoise.py @@ -9,8 +9,8 @@ import time import click -from click_plugins import with_plugins -import importlib.metadata +# from click_plugins import with_plugins +# import importlib.metadata from .._version import get_git_version @@ -239,12 +239,12 @@ def info_plugins(db): click.echo(" %s : %i" % (jobtype, n)) -if sys.version_info < (3, 11): - click_command_tree_entry_points = importlib.metadata.entry_points().get('click_command_tree', []) -else: - click_command_tree_entry_points = importlib.metadata.entry_points.select(group='click_command_tree') +# if sys.version_info < (3, 11): +# click_command_tree_entry_points = importlib.metadata.entry_points().get('click_command_tree', []) +# else: +# click_command_tree_entry_points = importlib.metadata.entry_points.select(group='click_command_tree') -@with_plugins(click_command_tree_entry_points) +# @with_plugins(click_command_tree_entry_points) @click.group(context_settings=dict(max_content_width=120), cls=OrderedGroup) @click.option('-t', '--threads', default=1, help='Number of threads to use \ (only affects modules that are designed to do parallel processing)')