Skip to content

Commit

Permalink
Tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
egede committed Apr 23, 2024
1 parent c067be1 commit 972720f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ganga/GangaLHCb/Lib/Applications/GaudiExec.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,8 +195,8 @@ class GaudiExec(IPrepareApp):
'nMakeCores': SimpleItem(defvalue=1,
doc='Number of cores to be provided via the "-j" option to the "make" command'\
'when building the ganga-input-sandbox'),
'apptainerBuild' : SimpleItem(defvalue=False, doc="Run the build command in apptainer"),
'containerLocation' : SimpleItem(defvalue='/cvmfs/cernvm-prod.cern.ch/cvm4',
'apptainerBuild': SimpleItem(defvalue=False, doc="Run the build command in apptainer"),
'containerLocation': SimpleItem(defvalue='/cvmfs/cernvm-prod.cern.ch/cvm4',
doc='Where is the container to use for the build located'),
# Prepared job object
'is_prepared': SimpleItem(defvalue=None, strict_sequence=0, visitable=1, copyable=1, hidden=0,
Expand Down Expand Up @@ -572,7 +572,7 @@ def execCmd(self, cmd):
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:
except BaseException:
logger.error('Failed to build the application inside a container. '
'Perhaps the specified container location is not accessible.')
raise GangaException('Failed to execute make command')
Expand Down

0 comments on commit 972720f

Please sign in to comment.