def get_focused_on(script, focused_on):
    """ .

    Parameters
    ----------
    script : string
        The path of the script.

    focused_on : string
        The string of comma separate method paths to retrieve the function
        objects for.

    """
    if focused_on is not None:
        functions = []
        for item in focused_on.split(','):
            cleaned_item = item.strip()
            try:
                function = get_function(cleaned_item)
            except (ImportError, ValueError):
                module = os.path.splitext(
                    os.path.basename(script))[0]
                try:
                    function = get_function('.'.join((module, cleaned_item)))
                except (ImportError, ValueError):
                    raise ValueError(
                        'Cannot find function: {0}'.format(cleaned_item))
            functions.append(function)
    else:
        functions = None
    return functions
dataset/ETHPy150Open enthought/pikos/pikos/runner.py/get_focused_on/original