def load_script(filename):
path, module_name, ext = _extract_script_components(filename)<EOL>add_search_path(path)<EOL>return _load_module(module_name)<EOL>
Loads a python script as a module.

This function is provided to allow applications to load a Python module by its file name.

:param string filename:
    Name of the python file to be loaded as a module.

:return:
    A |Python|_ module loaded from the specified file.