"ppocr/vscode:/vscode.git/clone" did not exist on "fce0a57dec5635022d4170ba4a15e32a432b9cc7"
Commit 648a43fd authored by 魏大毛's avatar 魏大毛
Browse files

增加打开的数据集文件夹的功能,且移动原文件夹会提示,代码格式规范

parent 22d3ead4
......@@ -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:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment