def copy_path(self): path = self.get_current_path() path_str = ",".join(path) QApplication.clipboard().setText(path_str)