summaryrefslogtreecommitdiff
path: root/src/plugins/python/pythonutils.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/python/pythonutils.cpp')
-rw-r--r--src/plugins/python/pythonutils.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/python/pythonutils.cpp b/src/plugins/python/pythonutils.cpp
index 75bccc821a..34b426546e 100644
--- a/src/plugins/python/pythonutils.cpp
+++ b/src/plugins/python/pythonutils.cpp
@@ -94,7 +94,7 @@ void openPythonRepl(QObject *parent, const FilePath &file, ReplType type)
if (file.isEmpty()) {
if (Project *project = SessionManager::startupProject())
return project->projectDirectory();
- return FilePath::fromString(QDir::currentPath());
+ return FilePath::currentWorkingPath();
}
return file.absolutePath();
};