def connect_socket_file(path='/var/run/tor/control', password=None, chroot_path=None, controller=stem.control.Controller):
 try:
  control_socket = stem.socket.ControlSocketFile(path)
 except stem.SocketError as exc:
  print exc
  return None
 return _connect_auth(control_socket, password, True, chroot_path, controller)

def connect_socket_file ( path = '/var/run/tor/control' , password = None , chroot_path = None , controller = stem . control . Controller ) : try : control_socket = stem . socket . ControlSocketFile ( path ) except stem . SocketError as exc : print exc return None return _connect_auth ( control_socket , password , True , chroot_path , controller )
convenience function for quickly getting a control connection .