def _warn_existing_output_dir(self, path):
path = os.path.abspath(path)
reply = QMessageBox.question(self, "Reuse previous data",
"Intermediate files were found at\n{0}\nDo you want to reuse them?".format(path),
QMessageBox.Yes | QMessageBox.No, QMessageBox.No)
reuse = int(reply) == QMessageBox.Yes
if not reuse:
shutil.rmtree(path)
评论列表
文章目录