From ce27c4f014033abcd2d6cb867bed9b07e81ed3fa Mon Sep 17 00:00:00 2001 From: Dariusz Suchojad Date: Mon, 6 Nov 2023 11:35:56 +0100 Subject: [PATCH] GH #755 - Use the full path to Zato executable. --- code/zato-server/src/zato/server/commands.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/code/zato-server/src/zato/server/commands.py b/code/zato-server/src/zato/server/commands.py index db7a89e8c6..89c7b1cc9a 100644 --- a/code/zato-server/src/zato/server/commands.py +++ b/code/zato-server/src/zato/server/commands.py @@ -24,6 +24,7 @@ from zato.common.util.platform_ import is_windows from zato.common.typing_ import cast_ from zato.common.util import new_cid +from zato.common.util.api import get_zato_command # ################################################################################################################################ # ################################################################################################################################ @@ -370,7 +371,7 @@ def run_zato_cli_async( ) -> 'CommandResult': # This will differ depending on our current OS - zato_bin = 'zato.bat' if is_windows else 'zato' + zato_bin = 'zato.bat' if is_windows else get_zato_command() # Build the full command to execute command = f'{zato_bin} {command}'