human
Complete this python program:
def get_texpath():
assistant
#Here is the Python program you requested.

    """Returns the texpath setting with any environment variables expanded
    """
    def _get_texpath():
        try:
            texpath = get_setting(sublime.platform(), {}).get('texpath')
        except AttributeError:
            exc_info = sys.exc_info
            try:
                reload(sys.modules[get_texpath.__module__])
                texpath = get_setting(sublime.platform(), {}).get('texpath')
            except:
                reraise(*exc_info)
        return (expand_vars(texpath) if (texpath is not None) else None)
    return run_on_main_thread(_get_texpath, default_value=None)