00001 """
00002 Module used to select if to use AthenCommon or GaudiKernel to retrieve the
00003 implementation of Configurables.
00004
00005 @author Marco Clemencic
00006 """
00007
00008 try:
00009
00010 from AthenaCommon import Configurable
00011 from AthenaCommon import ConfigurableDb
00012 def _getNeededConfigurables():
00013 """
00014 In Athena, the list of configurables to be used in GaudiPython.AppMgr
00015 constructor is empty, because the configuration is done in a different
00016 place.
00017 """
00018 return []
00019 Configurable.getNeededConfigurables = _getNeededConfigurables
00020 except ImportError:
00021
00022 from GaudiKernel import Configurable
00023 from GaudiKernel import ConfigurableDb
00024
00025
00026
00027 import sys
00028 sys.modules["GaudiKernel.Proxy.Configurable"] = Configurable
00029 sys.modules["GaudiKernel.Proxy.ConfigurableDb"] = ConfigurableDb
00030 import GaudiKernel.Proxy.Configurable
00031 import GaudiKernel.Proxy.ConfigurableDb
00032 del sys