diff --git a/python/console/console.py b/python/console/console.py index 74ba78c97e8..d4c0fef311f 100644 --- a/python/console/console.py +++ b/python/console/console.py @@ -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)")