Skip to content

Commit

Permalink
Merge pull request #2378 from ganga-devs/apptainer_adjustment
Browse files Browse the repository at this point in the history
Add pwd to Apptainer start
  • Loading branch information
mesmith75 authored Aug 16, 2024
2 parents 8cb5f9a + 06ba4f0 commit 99318f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ganga/GangaCore/Lib/Virtualization/Apptainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
"""
Expand Down

0 comments on commit 99318f2

Please sign in to comment.