def createLoadableModuleBuilder(env):
    """This is a utility function that creates the LoadableModule
    Builder in an Environment if it is not there already.

    If it is already there, we return the existing one.
    """

    try:
        ld_module = env['BUILDERS']['LoadableModule']
    except KeyError:
        import SCons.Defaults
        action_list = [ SCons.Defaults.SharedCheck,
                        SCons.Defaults.LdModuleLinkAction,
                        LibSymlinksAction ]
        ld_module = SCons.Builder.Builder(action = action_list,
                                          emitter = "$LDMODULEEMITTER",
                                          prefix = LdModPrefixGenerator,
                                          suffix = LdModSuffixGenerator,
                                          target_scanner = ProgramScanner,
                                          src_suffix = '$SHOBJSUFFIX',
                                          src_builder = 'SharedObject')
        env['BUILDERS']['LoadableModule'] = ld_module

    return ld_module
def createLoadableModuleBuilder ( env ) : try : ld_module = env [ 'BUILDERS' ] [ 'LoadableModule' ] except KeyError : import SCons . Defaults action_list = [ SCons . Defaults . SharedCheck , SCons . Defaults . LdModuleLinkAction , LibSymlinksAction ] ld_module = SCons . Builder . Builder ( action = action_list , emitter = "$LDMODULEEMITTER" , prefix = LdModPrefixGenerator , suffix = LdModSuffixGenerator , target_scanner = ProgramScanner , src_suffix = '$SHOBJSUFFIX' , src_builder = 'SharedObject' ) env [ 'BUILDERS' ] [ 'LoadableModule' ] = ld_module return ld_module
This is a utility function that creates the LoadableModule
    Builder in an Environment if it is not there already.

    If it is already there, we return the existing one.