original_docstring: Open a file on your local drive, using its extension to guess its type.
  
      This routine only works on ``.bsp`` ephemeris files right now, but
      will gain support for additional file types in the future. ::
  
          from skyfield.api import load_file
          planets = load_file('~/Downloads/de421.bsp')
  
      
docstring: Open a file on your local drive, using its extension to guess its type.
  This routine only works on ``.bsp`` ephemeris files right now, but
  will gain support for additional file types in the future.
  
  
docstring_tokens: Open a file on your local drive using its extension to guess its type . This routine only works on ` ` . bsp ` ` ephemeris files right now but will gain support for additional file types in the future .
code: def load_file(path):
      """Open a file on your local drive, using its extension to guess its type.
  
      This routine only works on ``.bsp`` ephemeris files right now, but
      will gain support for additional file types in the future. ::
  
          from skyfield.api import load_file
          planets = load_file('~/Downloads/de421.bsp')
  
      """
      path = os.path.expanduser(path)
      base, ext = os.path.splitext(path)
      if ext == '.bsp':
          return SpiceKernel(path)
      raise ValueError('unrecognized file extension: {}'.format(path))
code_tokens: def load_file ( path ) : path = os . path . expanduser ( path ) base , ext = os . path . splitext ( path ) if ext == '.bsp' : return SpiceKernel ( path ) raise ValueError ( 'unrecognized file extension: {}' . format ( path ) )
short_docstring: Open a file on your local drive, using its extension to guess its type.
short_docstring_tokens: Open a file on your local drive using its extension to guess its type .
comment: """Open a file on your local drive, using its extension to guess its type.
  
      This routine only works on ``.bsp`` ephemeris files right now, but
      will gain support for additional file types in the future. ::
  
          from skyfield.api import load_file
          planets = load_file('~/Downloads/de421.bsp')
  
      """