]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PWGLF/FORWARD/analysis2/sim/BaseConfig.C
Merge branch 'master' of https://git.cern.ch/reps/AliRoot
[u/mrichter/AliRoot.git] / PWGLF / FORWARD / analysis2 / sim / BaseConfig.C
index 9b375b6959e2db1c8486ea43dc3a93eb59362316..313e5b33c8cc9d3dfe65f87ee16d0bd94444ccda 100644 (file)
@@ -549,14 +549,14 @@ struct VirtualTrain
       return (result >= 0);
     }
     // Check if the library is already loaded
-    if (strlen(gSystem->GetLibraries(Form("%s.so", module), "", kFALSE)) > 0) {
+    if (strlen(gSystem->GetLibraries(module, "", kFALSE)) > 0) {
       ::Info("LoadLibrary", "Module %s.so already loaded", module);
       gROOT->DecreaseDirLevel();      
       return kTRUE;
     }
 
     ::Info("LoadLibrary", "Trying to load lib%s.so", module);
-    result = gSystem->Load(Form("lib%s.so", module));
+    result = gSystem->Load(Form("lib%s", module));
     if (result < 0)
       ::Error("LoadLibrary", "Could not load module %s", module);
     ::Info("LoadLibrary", "Module %s, successfully loaded", module);