diff --git a/Pilot/pilotCommands.py b/Pilot/pilotCommands.py index d62a808a..2f06682f 100644 --- a/Pilot/pilotCommands.py +++ b/Pilot/pilotCommands.py @@ -442,7 +442,8 @@ def _installDIRACpy3(self): def execute(self): """What is called all the time""" - if preinstalledEnvScript := self._getPreinstalledEnvScript(): + preinstalledEnvScript = self._getPreinstalledEnvScript() + if preinstalledEnvScript: self._setupFromPreinstalledLocation(preinstalledEnvScript) elif self.pp.pythonVersion == "27": self._setInstallOptions()