PyCharm: Skip files in PYCHARM_PYTHONS dir in tests.

We might have scripts there (on Windows) like `fix_path.cmd`, we need to exclude them


(cherry picked from commit e09ceac554f456a3d8a931e0dfe26872908c303c)

IJ-CR-151567


(cherry picked from commit 8a8d68e41a6bd607622f3b6afa76e5dc878f4236)

IJ-CR-151953

GitOrigin-RevId: 9a463cdc1e0c348c2ffa27f26e64781f5014bd97
This commit is contained in:
Ilya.Kazakevich
2024-12-11 17:39:34 +01:00
committed by intellij-monorepo-bot
parent da00fd4e04
commit 785ae87864

View File

@@ -26,13 +26,13 @@ internal data class PyEnvTestSettings(
private val foldersWithPythons: List<File> = listOfNotNull(folderWithCPythons, folderWithCondas).map { File(it) }
/**
* Paths to all existing python SDKs
* Paths to all existing python SDKs (as directories with python installation)
*/
@TestOnly
internal val pythons: List<File> = foldersWithPythons
.filter(File::exists)
.flatMap { it.listFiles()?.toList() ?: emptyList() }
.filter { !it.name.startsWith('.') }
.filter { it.isDirectory && !it.name.startsWith('.') }
.plus(additionalInterpreters)
/**