From 93a095ae22baa954ec9284bcf7aed96d60967696 Mon Sep 17 00:00:00 2001 From: Jakub Frejlach Date: Thu, 23 Nov 2023 16:41:40 +0100 Subject: [PATCH] Split MIDDLEWARE_CLI command on spaces This is for users who doesn't use single command but run middleware cli through python. Python subprocess requires all parts of the command to be separated --- griffon/commands/queries.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/griffon/commands/queries.py b/griffon/commands/queries.py index cf258bc..823da41 100644 --- a/griffon/commands/queries.py +++ b/griffon/commands/queries.py @@ -404,7 +404,9 @@ def get_product_contain_component( # TODO: interim hack for middleware if component_name and MIDDLEWARE_CLI and not no_middleware: operation_status.update("searching deptopia middleware.") - mw_command = [MIDDLEWARE_CLI, component_name, "-e", "maven", "--json"] + + # Use split for users who runs middleware via python + mw_command = [*MIDDLEWARE_CLI.split(), component_name, "-e", "maven", "--json"] if strict_name_search: mw_command.append("-s") proc = subprocess.run(