From 19d34c36b2532f67121ac34bdddbfbee32c81427 Mon Sep 17 00:00:00 2001
From: Andre Sailer <andre.philippe.sailer@cern.ch>
Date: Tue, 5 Jul 2016 14:16:18 +0000
Subject: [PATCH] DDG4.py: remove automatic compilation if loading of
 libDDG4Plugins failed

I have never seen the compilation work and the error to load the library is usually irrecoverable[1]
It is just confusing for users when the compilation then also fails

[1] Like missing local libraries
---
 DDG4/python/DDG4.py | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/DDG4/python/DDG4.py b/DDG4/python/DDG4.py
index 61ce223a4..436f23a29 100644
--- a/DDG4/python/DDG4.py
+++ b/DDG4/python/DDG4.py
@@ -31,13 +31,12 @@ def _import_class(ns,nam):
 #
 try:
   DD4hep     = loadDDG4() 
-except Exception,X:
+except Exception as X:
   print '+--%-100s--+'%(100*'-',)
   print '|  %-100s  |'%('Failed to load DDG4 library:',)
   print '|  %-100s  |'%(str(X),)
-  print '|  %-100s  |'%('Try to compile AClick on the fly.',)
   print '+--%-100s--+'%(100*'-',)
-  DD4hep   = compileAClick(dictionary='DDG4Dict.C',g4=True)  
+  exit(1)
 from ROOT import CLHEP as CLHEP
 Core       = DD4hep
 Sim        = DD4hep.Simulation
-- 
GitLab