def get_texpath():
 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)

def get_texpath ( ) : 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 )
returns the texpath setting with any environment variables expanded .