From 982bd636622f0b407f4fd1e86a3ce1f75b53afa2 Mon Sep 17 00:00:00 2001
From: Jan David Mol <mol@astron.nl>
Date: Tue, 5 Jul 2016 12:17:26 +0000
Subject: [PATCH] Task #9607: Fixed PythonControl to forward LOFARENV to
 pipelines

---
 MAC/APL/CEPCU/src/PythonControl/PythonControl.cc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/MAC/APL/CEPCU/src/PythonControl/PythonControl.cc b/MAC/APL/CEPCU/src/PythonControl/PythonControl.cc
index 0fce53909dc..99125ff8251 100644
--- a/MAC/APL/CEPCU/src/PythonControl/PythonControl.cc
+++ b/MAC/APL/CEPCU/src/PythonControl/PythonControl.cc
@@ -212,13 +212,13 @@ bool PythonControl::_startPython(const string&	pythonProg,
 	itsPythonName = formatString("PythonServer{%d}@%s", obsID, pythonHost.c_str());
 
 	if (onRemoteMachine) {
-		startCmd = formatString("ssh %s %s %s %s %s %s %s", 
+		startCmd = formatString("ssh %s LOFARENV=$LOFARENV %s %s %s %s %s %s", 
 								pythonHost.c_str(), startScript.c_str(),
 								executable.c_str(), parSetName.c_str(),
 								myHostname(true).c_str(), parentService.c_str(), itsPythonName.c_str());
 	}
 	else {
-		startCmd = formatString("%s %s %s %s %s %s", 
+		startCmd = formatString("env LOFARENV=$LOFARENV %s %s %s %s %s %s", 
 								startScript.c_str(),
 								executable.c_str(), parSetName.c_str(),
 								myHostname(true).c_str(), parentService.c_str(), itsPythonName.c_str());
-- 
GitLab