Skip to content

Commit

Permalink
fix apptainer call
Browse files Browse the repository at this point in the history
  • Loading branch information
Anfeng Li committed Apr 23, 2024
1 parent d1333f3 commit c067be1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ganga/GangaLHCb/Lib/Applications/GaudiExec.py
Original file line number Diff line number Diff line change
Expand Up @@ -569,7 +569,7 @@ def execCmd(self, cmd):
if self.apptainerBuild or 'slc6' in self.platform:
try:
logger.info('Building inside apptainer: %s' % self.containerLocation)
cmd_to_run = 'apptainer exec --env "PATH=$PATH" --bind $PWD --bind /cvmfs:/cvmfs:ro '\
cmd_to_run = 'source /cvmfs/lhcb.cern.ch/lib/LbEnv && apptainer exec --env "PATH=$PATH" --bind $PWD --bind /cvmfs:/cvmfs:ro '\
+ self.containerLocation + ' ' + cmd_file.name
rc, stdout, stderr = _exec_cmd(cmd_to_run, self.directory)
except:
Expand Down

0 comments on commit c067be1

Please sign in to comment.