'Save history to a text file in user home directory'

def save_wdhistory(self):

    text = [to_text_string(self.pathedit.itemText(index)) for index in range(self.pathedit.count())]
    encoding.writelines(text, self.LOG_PATH)
