From 648a43fdcc96fe98987281e70056d5482a4f2c48 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=AD=8F=E5=A4=A7=E6=AF=9B?= <2443176192@qq.com> Date: Thu, 8 Jul 2021 20:17:36 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=89=93=E5=BC=80=E7=9A=84?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E9=9B=86=E6=96=87=E4=BB=B6=E5=A4=B9=E7=9A=84?= =?UTF-8?q?=E5=8A=9F=E8=83=BD,=E4=B8=94=E7=A7=BB=E5=8A=A8=E5=8E=9F?= =?UTF-8?q?=E6=96=87=E4=BB=B6=E5=A4=B9=E4=BC=9A=E6=8F=90=E7=A4=BA=EF=BC=8C?= =?UTF-8?q?=E4=BB=A3=E7=A0=81=E6=A0=BC=E5=BC=8F=E8=A7=84=E8=8C=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- PPOCRLabel/PPOCRLabel.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/PPOCRLabel/PPOCRLabel.py b/PPOCRLabel/PPOCRLabel.py index 79c145d1..cd5b3dfe 100644 --- a/PPOCRLabel/PPOCRLabel.py +++ b/PPOCRLabel/PPOCRLabel.py @@ -1460,13 +1460,12 @@ class MainWindow(QMainWindow, WindowMixin): defaultOpenDirPath = self.lastOpenDir else: if self.lang == 'ch': - self.actions.open_dataset_dir.setEnabled(False) self.msgBox.warning(self, "提示", "\n 原文件夹已不存在,请从新选择数据集路径!") - defaultOpenDirPath = os.path.dirname(self.filePath) if self.filePath else '.' else: - self.actions.open_dataset_dir.setEnabled (False) self.msgBox.warning (self, "Warn", "\n The original folder no longer exists, please choose the data set path again!") - defaultOpenDirPath = os.path.dirname (self.filePath) if self.filePath else '.' + + self.actions.open_dataset_dir.setEnabled(False) + defaultOpenDirPath = os.path.dirname(self.filePath) if self.filePath else '.' def importDirImages(self, dirpath, isDelete = False): if not self.mayContinue() or not dirpath: -- GitLab