mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-13 00:03:09 -04:00
[pyqgis-console] fixes #13693: fix default value in settings for the last used directory when opening a script file
This commit is contained in:
parent
b931501e09
commit
c866dcce8f
@ -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)")
|
||||
|
Loading…
x
Reference in New Issue
Block a user