mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-18 20:41:22 +07:00
Visit all possible roots during looking for conda in /opt/ (PY-52052)
GitOrigin-RevId: 3ff0814c25dd7479b455c4a09365fb993725869d
This commit is contained in:
committed by
intellij-monorepo-bot
parent
a43c6143dc
commit
27df6491d9
@@ -188,9 +188,11 @@ public class PyCondaPackageService implements PersistentStateComponent<PyCondaPa
|
||||
}
|
||||
|
||||
if (!SystemInfo.isWindows) {
|
||||
final VirtualFile systemCondaFolder = LocalFileSystem.getInstance().findFileByPath("/opt/anaconda");
|
||||
final String executableFile = findExecutable(condaName, systemCondaFolder);
|
||||
if (executableFile != null) return executableFile;
|
||||
for (String root : CONDA_DEFAULT_ROOTS) {
|
||||
final VirtualFile systemCondaFolder = LocalFileSystem.getInstance().findFileByPath("/opt/" + root);
|
||||
final String executableFile = findExecutable(condaName, systemCondaFolder);
|
||||
if (executableFile != null) return executableFile;
|
||||
}
|
||||
}
|
||||
|
||||
return null;
|
||||
|
||||
Reference in New Issue
Block a user