def add_toolkit(topology, location):
    """Add an SPL toolkit to a topology.

    Args:
        topology(Topology): Topology to include toolkit in.
        location(str): Location of the toolkit directory.
    """
    import streamsx.topology.topology
    assert isinstance(topology, streamsx.topology.topology.Topology)
    tkinfo = dict()
    tkinfo['root'] = os.path.abspath(location)
    topology.graph._spl_toolkits.append(tkinfo)
def add_toolkit ( topology , location ) : import streamsx . topology . topology assert isinstance ( topology , streamsx . topology . topology . Topology ) tkinfo = dict ( ) tkinfo [ 'root' ] = os . path . abspath ( location ) topology . graph . _spl_toolkits . append ( tkinfo )
Add an SPL toolkit to a topology.

    Args:
        topology(Topology): Topology to include toolkit in.
        location(str): Location of the toolkit directory.