code: def save_wdhistory(self):
          
          text = [ to_text_string( self.pathedit.itemText(index) ) \
                   for index in range(self.pathedit.count()) ]
          try:
              encoding.writelines(text, self.LOG_PATH)
          except EnvironmentError:
              pass
docs: Save history to a text file in user home directory