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.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/python/pythonutils.cpp b/src/plugins/python/pythonutils.cpp
index d476bbf5bf..043802e336 100644
--- a/src/plugins/python/pythonutils.cpp
+++ b/src/plugins/python/pythonutils.cpp
@@ -517,10 +517,10 @@ void openPythonRepl(const FilePath &file, ReplType type)
static const auto workingDir = [](const FilePath &file) {
if (file.isEmpty()) {
if (ProjectExplorer::Project *project = ProjectExplorer::SessionManager::startupProject())
- return project->projectDirectory().toFileInfo().filePath();
- return QDir::currentPath();
+ return project->projectDirectory();
+ return FilePath::fromString(QDir::currentPath());
}
- return file.toFileInfo().path();
+ return file;
};
const auto args = QStringList{"-i"} + replImportArgs(file, type);