Merge pull request #126 from jiyeqian/master

Fix filename bug
This commit is contained in:
darrenl
2017-07-26 14:16:46 +08:00
committed by GitHub
+1 -1
View File
@@ -945,7 +945,7 @@ class MainWindow(QMainWindow, WindowMixin):
xmlPath = os.path.join(self.defaultSaveDir, basename)
self.loadPascalXMLByFilename(xmlPath)
else:
xmlPath = filePath.split(".")[0] + XML_EXT
xmlPath = os.path.splitext(filePath)[0] + XML_EXT
if os.path.isfile(xmlPath):
self.loadPascalXMLByFilename(xmlPath)