diff --git a/PhysicsAnalysis/D3PDTools/EventLoopGrid/Root/GridDriver.cxx b/PhysicsAnalysis/D3PDTools/EventLoopGrid/Root/GridDriver.cxx index cece8c28defa1dc4216256eed5ab0f2c8e065259..2853c5f5a656c977d8fd109021a1ce1f8b4bf8f7 100644 --- a/PhysicsAnalysis/D3PDTools/EventLoopGrid/Root/GridDriver.cxx +++ b/PhysicsAnalysis/D3PDTools/EventLoopGrid/Root/GridDriver.cxx @@ -1016,7 +1016,7 @@ namespace EL { const std::string getNickname() { const char pyGetNickName[] = "from pandatools import PsubUtils;" - "print PsubUtils.getNickname();"; + "print (PsubUtils.getNickname());"; return gSystem->GetFromPipe(Form("python -c \"%s\" 2>/dev/null", pyGetNickName)).Data(); } @@ -1054,11 +1054,11 @@ namespace EL { << " gs.killServer()\n" << " time.sleep(60)\n" << " if not gs.startServer():\n" - << " print \"Failed to start server\"\n" + << " print (\"Failed to start server\")\n" << " exit(0)\n" - << "print gs.sendCmd(\"\"\"\n" + << "print (gs.sendCmd(\"\"\"\n" << cmd - << "\"\"\")\n" + << "\"\"\"))\n" << "EOL\n"; out = gSystem->GetFromPipe(sendCmd.str().c_str()).Data();