diff --git a/src/plugins/python/pythonutils.cpp b/src/plugins/python/pythonutils.cpp index 4174702c1f9..a98fdc449a3 100644 --- a/src/plugins/python/pythonutils.cpp +++ b/src/plugins/python/pythonutils.cpp @@ -518,7 +518,7 @@ void openPythonRepl(const FilePath &file, ReplType type) return project->projectDirectory(); return FilePath::fromString(QDir::currentPath()); } - return file; + return file.absolutePath(); }; const auto args = QStringList{"-i"} + replImportArgs(file, type);