[pyqgis-console] fixes #13693: fix default value in settings for the last used directory when opening a script file

This commit is contained in:
Salvatore Larosa 2015-10-28 14:51:32 +01:00
parent b931501e09
commit c866dcce8f

View File

@ -633,7 +633,7 @@ class PythonConsoleWidget(QWidget):
QDesktopServices.openUrl(QUrl.fromLocalFile(path))
def openScriptFile(self):
lastDirPath = self.settings.value("pythonConsole/lastDirPath", QDir.home())
lastDirPath = self.settings.value("pythonConsole/lastDirPath", QDir.homePath())
openFileTr = QCoreApplication.translate("PythonConsole", "Open File")
fileList = QFileDialog.getOpenFileNames(
self, openFileTr, lastDirPath, "Script file (*.py)")