mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-19 13:02:30 +07:00
[pycharm] PY-78648 Resolve uv correctly on windows
GitOrigin-RevId: f280a79ce566d43682fd77da735d037fff2e9ed3
This commit is contained in:
committed by
intellij-monorepo-bot
parent
426831b2de
commit
a782da7be5
@@ -5,4 +5,9 @@ import java.nio.file.Path
|
||||
/**
|
||||
* `python` or `python.exe`
|
||||
*/
|
||||
typealias PythonBinary = Path
|
||||
typealias PythonBinary = Path
|
||||
|
||||
/**
|
||||
* python home directory, virtual environment or a base one.
|
||||
*/
|
||||
typealias PythonHomePath = Path
|
||||
|
||||
@@ -6,6 +6,7 @@ import com.intellij.openapi.util.io.toCanonicalPath
|
||||
import com.intellij.util.SystemProperties
|
||||
import com.intellij.util.concurrency.annotations.RequiresBackgroundThread
|
||||
import com.jetbrains.python.PythonBinary
|
||||
import com.jetbrains.python.PythonHomePath
|
||||
import org.jetbrains.annotations.ApiStatus
|
||||
import org.jetbrains.annotations.NonNls
|
||||
import java.io.IOException
|
||||
@@ -99,7 +100,7 @@ class VirtualEnvReader(
|
||||
* [dir] is root directory of python installation or virtualenv
|
||||
*/
|
||||
@RequiresBackgroundThread
|
||||
fun findPythonInPythonRoot(dir: Directory): PythonBinary? {
|
||||
fun findPythonInPythonRoot(dir: PythonHomePath): PythonBinary? {
|
||||
if (!dir.isDirectory()) {
|
||||
return null
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user