From cce09c3dced3589eb9b35f5a5bd50550a9ad4360 Mon Sep 17 00:00:00 2001 From: Simon Fayer Date: Wed, 2 Oct 2024 11:36:15 +0100 Subject: [PATCH] fix: SSHCE, Try python3 before unversioned python --- src/DIRAC/Resources/Computing/SSHComputingElement.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/DIRAC/Resources/Computing/SSHComputingElement.py b/src/DIRAC/Resources/Computing/SSHComputingElement.py index 77e8d66686f..13a175bfafd 100644 --- a/src/DIRAC/Resources/Computing/SSHComputingElement.py +++ b/src/DIRAC/Resources/Computing/SSHComputingElement.py @@ -495,7 +495,7 @@ def __executeHostCommand(self, command, options, ssh=None, host=None): options = quote(options) cmd = ( - "bash --login -c 'python %s/execute_batch %s || python3 %s/execute_batch %s || python2 %s/execute_batch %s'" + "bash --login -c 'python3 %s/execute_batch %s || python %s/execute_batch %s || python2 %s/execute_batch %s'" % (self.sharedArea, options, self.sharedArea, options, self.sharedArea, options) )