From 5be61cce57681d8fd90aedb6853564a3a7c682b0 Mon Sep 17 00:00:00 2001
From: matta <matta@npt>
Date: Fri, 7 Jan 2011 21:05:43 +0000
Subject: [PATCH] * Fixing bug in NPToolLogon.C

---
 NPLib/scripts/NPToolLogon.C | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/NPLib/scripts/NPToolLogon.C b/NPLib/scripts/NPToolLogon.C
index cb759fdea..e87441095 100644
--- a/NPLib/scripts/NPToolLogon.C
+++ b/NPLib/scripts/NPToolLogon.C
@@ -22,6 +22,7 @@
  *****************************************************************************/
  
 #include "TSystem.h"
+#include "TROOT.h"
 #include "TList.h"
 #include "TSystemDirectory.h"
 #include "TString.h"
@@ -36,9 +37,9 @@ void InitNPTool(bool quietmode = false)
    
    // Add include path
    if(quietmode)
-    cout << "NPTool: adding include path ..." << endl;
-   gSystem->AddIncludePath(Form("%s/include", path.Data()));
-
+    cout << "NPTool: adding include path : " << path << "/include" << endl;
+    
+   gROOT->ProcessLine(Form(".include %s/include", path.Data()));
    // Add shared libraries
    if(quietmode)
    cout << "NPTool: loading NPLib shared libraries ..." << endl;
@@ -71,5 +72,5 @@ void InitNPTool(bool quietmode = false)
    if(quietmode)
    cout << "NPTool: Ready" << endl;
    
-   delete listfile2, listfile ;
+//   delete listfile2, listfile ;
 }
-- 
GitLab