'Constructs a :class:`~stem.socket.ControlSocketFile` based Controller.
:param str path: path where the control socket is located
:returns: :class:`~stem.control.Controller` attached to the given socket file
:raises: :class:`stem.SocketError` if we\'re unable to establish a connection'

@staticmethod
def from_socket_file(path='/var/run/tor/control'):

    control_socket = stem.socket.ControlSocketFile(path)
    return Controller(control_socket)
