'Move hosts file to the system path after making.
.. note:: This method is the slot responses to the move_trigger signal
from an instance of :class:`~gui._make.QSubMakeHosts` class while
making operations are finished.
.. seealso:: :attr:`move_trigger` in
:class:`~gui._make.QSubMakeHosts`.'

def move_hosts(self):

    filepath = 'hosts'
    msg = (unicode(_translate('Util', 'Copying    new    hosts    file    to\n%s', None)) % self.hosts_path)
    self.set_make_message(msg)
    try:
        shutil.copy2(filepath, self.hosts_path)
    except IOError:
        self.warning_permission()
        os.remove(filepath)
        return
    except OSError:
        pass
    msg = unicode(_translate('Util', 'Remove    temporary    file', None))
    self.set_make_message(msg)
    os.remove(filepath)
    msg = unicode(_translate('Util', 'Operation    completed', None))
    self.set_make_message(msg)
    self.info_complete()
