From 06ba4f082f70e986b14e74062c0ef5523139e904 Mon Sep 17 00:00:00 2001 From: Mark Smith Date: Thu, 15 Aug 2024 20:02:58 +0200 Subject: [PATCH] add pwd to start --- ganga/GangaCore/Lib/Virtualization/Apptainer.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ganga/GangaCore/Lib/Virtualization/Apptainer.py b/ganga/GangaCore/Lib/Virtualization/Apptainer.py index d998ac8d95..77a7904dbe 100644 --- a/ganga/GangaCore/Lib/Virtualization/Apptainer.py +++ b/ganga/GangaCore/Lib/Virtualization/Apptainer.py @@ -136,12 +136,12 @@ def modify_script(self, script, sandbox=False): except Exception as x: print('Exception occured in downloading Apptainer image: ' + str(buildcommand)) print('Err was: ' + str(x)) -execmd = [virtualization_binary, '-q', 'exec', '--bind', \ +execmd = [virtualization_binary, '-q', 'exec', '--bind', '$PWD', '--bind', \ workdir+":"+"/work_dir", "--no-home"] + options + ['apptainer_sandbox'] + execmd """ else: extra = extra + """ -execmd = [virtualization_binary, '-q', 'exec', '--bind', \ +execmd = [virtualization_binary, '-q', 'exec', '--bind', '$PWD', '--bind', \ workdir+":"+"/work_dir", "--no-home"] + options + [virtualization_image] + execmd """