diff --git a/DDDigi/python/DDDigi.py b/DDDigi/python/DDDigi.py
index 544fda473682ef143f1e92a76b7de999c126b438..d78afcff9e4bfa694c840d2b3a9501789de4caf1 100644
--- a/DDDigi/python/DDDigi.py
+++ b/DDDigi/python/DDDigi.py
@@ -21,10 +21,11 @@ def loadDDDigi():
 
   # Try to load libglapi to avoid issues with TLS Static
   # Turn off all errors from ROOT about the library missing
-  orgLevel = ROOT.gErrorIgnoreLevel
-  ROOT.gErrorIgnoreLevel = 6000
-  gSystem.Load("libglapi")
-  ROOT.gErrorIgnoreLevel = orgLevel
+  if('libglapi' not in gSystem.GetLibraries()):
+    orgLevel = ROOT.gErrorIgnoreLevel
+    ROOT.gErrorIgnoreLevel = 6000
+    gSystem.Load("libglapi")
+    ROOT.gErrorIgnoreLevel = orgLevel
 
   import platform
   import os
diff --git a/DDG4/python/DDG4.py b/DDG4/python/DDG4.py
index 4482c6a937982e1540b62bfc71d09ba84ec67a22..d3ae4d59a475271a8516b3a03644bac5f7d6149c 100644
--- a/DDG4/python/DDG4.py
+++ b/DDG4/python/DDG4.py
@@ -22,10 +22,11 @@ def loadDDG4():
 
   # Try to load libglapi to avoid issues with TLS Static
   # Turn off all errors from ROOT about the library missing
-  orgLevel = ROOT.gErrorIgnoreLevel
-  ROOT.gErrorIgnoreLevel = 6000
-  gSystem.Load("libglapi")
-  ROOT.gErrorIgnoreLevel = orgLevel
+  if('libglapi' not in gSystem.GetLibraries()):
+    orgLevel = ROOT.gErrorIgnoreLevel
+    ROOT.gErrorIgnoreLevel = 6000
+    gSystem.Load("libglapi")
+    ROOT.gErrorIgnoreLevel = orgLevel
 
   import platform
   import os