summaryrefslogtreecommitdiff
path: root/src/plugins/python/pythonutils.cpp
diff options
context:
space:
mode:
authorDavid Schulz <david.schulz@qt.io>2022-03-23 10:12:56 +0100
committerDavid Schulz <david.schulz@qt.io>2022-03-28 12:15:37 +0000
commitbf5114dcee82a8b9a69901e99089f9030c636399 (patch)
tree84bdf4f6a3fbcf3bf48835971192c10e2b197fe7 /src/plugins/python/pythonutils.cpp
parent7cb3a726d481b232278d6199bba3a7404abd720d (diff)
downloadqt-creator-bf5114dcee82a8b9a69901e99089f9030c636399.tar.gz
Python: work with Interpreter in PythonRunConfiguration
This saves some unneeded file path conversion and lookups in the python settings. Change-Id: I8647858320183dc1da027363b4ab265f6c75e1ae Reviewed-by: Christian Stenger <christian.stenger@qt.io>
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 1ddad5cfcf..cd88efe8f2 100644
--- a/src/plugins/python/pythonutils.cpp
+++ b/src/plugins/python/pythonutils.cpp
@@ -59,7 +59,7 @@ FilePath detectPython(const FilePath &documentPath)
if (auto target = project->activeTarget()) {
if (auto runConfig = qobject_cast<PythonRunConfiguration *>(
target->activeRunConfiguration())) {
- python = FilePath::fromString(runConfig->interpreter());
+ python = runConfig->interpreter().command;
}
}
}