Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Pilot/pilotCommands.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,8 @@ def __init__(self, pilotParams):
self.pp.rootPath = self.pp.pilotRootPath
self.installScriptName = 'dirac-install.py'
self.installScript = ''
# This command is a "must-do", so it's assumed that the variable below is set
self.pp.installEnv['DIRACSYSCONFIG'] = 'pilot.cfg'

def _setInstallOptions(self):
""" Setup installation parameters
Expand Down Expand Up @@ -929,7 +931,6 @@ def __setInnerCEOpts(self):

# The file pilot.cfg has to be created previously by ConfigureDIRAC
if self.pp.localConfigFile:
self.innerCEOpts.append(' -o /AgentJobRequirements/ExtraOptions=%s' % self.pp.localConfigFile)
if LooseVersion(self.pp.releaseVersion) >= self.cfgOptionDIRACVersion:
self.innerCEOpts.append('--cfg')
self.innerCEOpts.append(self.pp.localConfigFile)
Expand Down Expand Up @@ -1032,7 +1033,6 @@ def __setInProcessOpts(self):

# The file pilot.cfg has to be created previously by ConfigureDIRAC
if self.pp.localConfigFile:
self.inProcessOpts.append(' -o /AgentJobRequirements/ExtraOptions=%s' % self.pp.localConfigFile)
if LooseVersion(self.pp.releaseVersion) >= self.cfgOptionDIRACVersion:
self.inProcessOpts.append('--cfg')
self.inProcessOpts.append(self.pp.localConfigFile)
Expand Down