mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IJPL-190497 Eel: Rename EelDescriptor.{platform,osFamily}
GitOrigin-RevId: 8f50c3d0adf900298ec54b3e89c539da9c806909
This commit is contained in:
committed by
intellij-monorepo-bot
parent
0c5c2a29db
commit
230ec9b156
+2
-2
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user