IJPL-190497 Eel: Rename EelDescriptor.{platform,osFamily}

GitOrigin-RevId: 8f50c3d0adf900298ec54b3e89c539da9c806909
This commit is contained in:
Vladimir Lagunov
2025-06-14 23:58:35 +00:00
committed by intellij-monorepo-bot
parent 0c5c2a29db
commit 230ec9b156
24 changed files with 28 additions and 28 deletions
@@ -33,7 +33,7 @@ suspend fun waitNoError(delay: Duration = 100.milliseconds, repeat: Int = 50, ch
}
@RequiresBackgroundThread
fun PythonHomePath.resolvePythonTool(name: String): Path = when (getEelDescriptor().platform) {
fun PythonHomePath.resolvePythonTool(name: String): Path = when (getEelDescriptor().osFamily) {
EelOsFamily.Windows -> resolve("Scripts/$name.exe")
EelOsFamily.Posix-> resolve("bin/$name")
}
@@ -53,7 +53,7 @@ private class PathMatcher(private val parent: Path) : TypeSafeMatcher<Path>(Path
private fun Path.expandWinPath(): Path =
try {
when (getEelDescriptor().platform) {
when (getEelDescriptor().osFamily) {
// On Windows we change 8.3 problem (c:\users\William.~1 -> c:\users\William.Gates)
// But you are encountered to disable 8.3 with `fsutil 8dot3name set 1`
EelOsFamily.Windows -> toRealPath()