Skip to content

Commit c866dcc

Browse files
committedOct 28, 2015
[pyqgis-console] fixes #13693: fix default value in settings for the last used directory when opening a script file
1 parent b931501 commit c866dcc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎python/console/console.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -633,7 +633,7 @@ def openScriptFileExtEditor(self):
633633
QDesktopServices.openUrl(QUrl.fromLocalFile(path))
634634

635635
def openScriptFile(self):
636-
lastDirPath = self.settings.value("pythonConsole/lastDirPath", QDir.home())
636+
lastDirPath = self.settings.value("pythonConsole/lastDirPath", QDir.homePath())
637637
openFileTr = QCoreApplication.translate("PythonConsole", "Open File")
638638
fileList = QFileDialog.getOpenFileNames(
639639
self, openFileTr, lastDirPath, "Script file (*.py)")

0 commit comments

Comments
 (0)
Failed to load comments.