diff options
author | David Schulz <david.schulz@qt.io> | 2022-03-23 10:12:56 +0100 |
---|---|---|
committer | David Schulz <david.schulz@qt.io> | 2022-03-28 12:15:37 +0000 |
commit | bf5114dcee82a8b9a69901e99089f9030c636399 (patch) | |
tree | 84bdf4f6a3fbcf3bf48835971192c10e2b197fe7 /src/plugins/python/pythonutils.cpp | |
parent | 7cb3a726d481b232278d6199bba3a7404abd720d (diff) | |
download | qt-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.cpp | 2 |
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; } } } |