Python: Replace one use of QDirCurrentPath()

Change-Id: I88a04930b8c62a68ee1adb73e1cdd3c433eea4e3
Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
hjk
2022-11-21 12:49:33 +01:00
parent e567cb313b
commit ba80985769

View File

@@ -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();
};