From c172c77159d53c1041f591c578d11d45e993e03e Mon Sep 17 00:00:00 2001 From: Mathieu Benoit Date: Fri, 5 Jan 2024 01:52:52 -0500 Subject: [PATCH] [IMP] script check_addons_exist.py: argument output_path - output the real path if module exist from configuration --- script/addons/check_addons_exist.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/script/addons/check_addons_exist.py b/script/addons/check_addons_exist.py index f5473f3..8ba791b 100755 --- a/script/addons/check_addons_exist.py +++ b/script/addons/check_addons_exist.py @@ -43,6 +43,11 @@ def get_config(): action="store_true", help="Enable debug output", ) + parser.add_argument( + "--output_path", + action="store_true", + help="Print path if module exist", + ) args = parser.parse_args() return args @@ -97,10 +102,15 @@ def main(): ) if dct_module_exist: for key, lst_value in dct_module_exist.items(): + is_print_value = False if len(lst_value) != 1: + is_print_value = True is_good = False module_list = "'" + "', '".join(lst_value) + "'" _logger.error(f"Conflict modules: {module_list}") + elif lst_value and config.output_path: + is_print_value = True + if is_print_value: for value in lst_value: print(value)