| # Gaudi Framework, version v22r0 |

Home |  | Generated: 9 Feb 2011

# Proxy.py

Go to the documentation of this file.

    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     # Try to import AthenaCommon
    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     # Otherwise use GaudiKernel
    00022     from GaudiKernel import Configurable
    00023     from GaudiKernel import ConfigurableDb
    00024
    00025 # Hack to expose Configurable and ConfigurableDb as the modules
    00026 # GaudiKernel.Proxy.Configurable and GaudiKernel.Proxy.ConfigurableDb
    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

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines