Skip to content
Snippets Groups Projects
Commit 19d34c36 authored by Andre Sailer's avatar Andre Sailer
Browse files

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
parent 58489388
No related branches found
No related tags found
No related merge requests found
...@@ -31,13 +31,12 @@ def _import_class(ns,nam): ...@@ -31,13 +31,12 @@ def _import_class(ns,nam):
# #
try: try:
DD4hep = loadDDG4() DD4hep = loadDDG4()
except Exception,X: except Exception as X:
print '+--%-100s--+'%(100*'-',) print '+--%-100s--+'%(100*'-',)
print '| %-100s |'%('Failed to load DDG4 library:',) print '| %-100s |'%('Failed to load DDG4 library:',)
print '| %-100s |'%(str(X),) print '| %-100s |'%(str(X),)
print '| %-100s |'%('Try to compile AClick on the fly.',)
print '+--%-100s--+'%(100*'-',) print '+--%-100s--+'%(100*'-',)
DD4hep = compileAClick(dictionary='DDG4Dict.C',g4=True) exit(1)
from ROOT import CLHEP as CLHEP from ROOT import CLHEP as CLHEP
Core = DD4hep Core = DD4hep
Sim = DD4hep.Simulation Sim = DD4hep.Simulation
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment