Skip to content

Commit

Permalink
[console] return home directory as string instead of QDir instance (fix
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbruy committed Sep 12, 2017
1 parent b26b8d9 commit 999d93a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/console/console.py
Original file line number Diff line number Diff line change
Expand Up @@ -629,7 +629,7 @@ def saveAsScriptFile(self, index=None):
index = self.tabEditorWidget.currentIndex()
if not tabWidget.path:
fileName = self.tabEditorWidget.tabText(index) + '.py'
folder = self.settings.value("pythonConsole/lastDirPath", QDir.home())
folder = self.settings.value("pythonConsole/lastDirPath", QDir.homePath())
pathFileName = os.path.join(folder, fileName)
fileNone = True
else:
Expand Down

0 comments on commit 999d93a

Please sign in to comment.