From 50c8e3b6aa8d5335c33ef5e4775e155091f0b969 Mon Sep 17 00:00:00 2001 From: Andreas Baer Date: Fri, 31 May 2024 14:37:41 +0200 Subject: [PATCH] Fixed wrong python interpreter for PS platform. --- autosubmit/platforms/paramiko_platform.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/autosubmit/platforms/paramiko_platform.py b/autosubmit/platforms/paramiko_platform.py index b09d07e36..6a738c075 100644 --- a/autosubmit/platforms/paramiko_platform.py +++ b/autosubmit/platforms/paramiko_platform.py @@ -1188,9 +1188,13 @@ class ParamikoPlatform(Platform): if job.type == Type.BASH: executable = 'bash' elif job.type == Type.PYTHON: - executable = 'python' + executable = 'python3' + elif job.type == Type.PYTHON2: + executable = 'python2' elif job.type == Type.R: executable = 'Rscript' + if job.executable != '': + executable = '' # Alternative: use job.executable with substituted placeholders remote_logs = (job.script_name + ".out."+str(job.fail_count), job.script_name + ".err."+str(job.fail_count)) if timeout < 1: command = export + ' nohup ' + executable + ' {0} > {1} 2> {2} & echo $!'.format( -- GitLab