diff options
| author | hjk <hjk@qt.io> | 2024-12-06 14:53:54 +0100 |
|---|---|---|
| committer | hjk <hjk@qt.io> | 2024-12-09 08:58:25 +0000 |
| commit | 5fad41873e1fdf205186ea335e62a2eee64df1b8 (patch) | |
| tree | 101c63069fd97555c4f0d6862a944298eb35ca31 /src/plugins/python/pythonlanguageclient.cpp | |
| parent | 015c1475422c10643995b883b40a243e1f1f95ce (diff) | |
Utils: Add FilePath::isLocal() and use it instead of !needsDevice()
"needsDevice()" is an odd name, but keep it for now until downstream
has caught up.
Change-Id: I1fdb65d55e84e31512edb8f0bea8a0a3f7b2879c
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
Diffstat (limited to 'src/plugins/python/pythonlanguageclient.cpp')
| -rw-r--r-- | src/plugins/python/pythonlanguageclient.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/python/pythonlanguageclient.cpp b/src/plugins/python/pythonlanguageclient.cpp index bbfb5c75474..ea92b20d451 100644 --- a/src/plugins/python/pythonlanguageclient.cpp +++ b/src/plugins/python/pythonlanguageclient.cpp @@ -70,7 +70,7 @@ static QHash<FilePath, PyLSClient*> &pythonClients() static FilePath pyLspPath(const FilePath &python) { const QString version = pythonVersion(python); - if (!python.needsDevice()) + if (python.isLocal()) return Core::ICore::userResourcePath() / "pylsp" / version; if (const expected_str<FilePath> tmpDir = python.tmpDir()) return *tmpDir / "qc-pylsp" / version; @@ -136,7 +136,7 @@ protected: if (!lspPath.isEmpty() && lspPath.exists() && QTC_GUARD(lspPath.isSameDevice(python))) { env.appendOrSet("PYTHONPATH", lspPath.path()); } - if (!python.needsDevice()) { + if (python.isLocal()) { // todo check where to put this tempdir in remote setups env.appendOrSet("PYTHONPATH", m_extraPythonPath.path().toString()); } |
