Skip to content

Commit 9f0241f

Browse files
committed
omit previous file extension on next export
1 parent 59ee83a commit 9f0241f

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

plotdevice/gui/widgets.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -406,6 +406,7 @@ def beginExport(self, kind):
406406
# If a file was already exported, use that folder/filename as the default.
407407
if self.last is not None:
408408
dirName, fileName = self.last
409+
fileName, ext = os.path.splitext(fileName)
409410

410411
# create the sheet
411412
exportPanel = NSSavePanel.savePanel()

0 commit comments

Comments
 (0)