mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-04 08:51:02 +07:00
Add conda doc
GitOrigin-RevId: b6bc66d0bcd643ac48f83396df41e11875a6b279
This commit is contained in:
committed by
intellij-monorepo-bot
parent
da2d68b5a8
commit
29ccb7031a
@@ -4,12 +4,19 @@ import com.intellij.execution.target.TargetedCommandLineBuilder
|
||||
import com.intellij.openapi.projectRoots.Sdk
|
||||
import com.jetbrains.python.sdk.PySdkUtil
|
||||
|
||||
/**
|
||||
* Each [PythonSdkFlavor] is associated with [PyFlavorData].
|
||||
* For example: Conda flavor requires special data (conda binary path) to be stored in sdk additional data
|
||||
*/
|
||||
interface PyFlavorData {
|
||||
/**
|
||||
* Prepares [targetCommandLineBuilder] to run python on [sdk]
|
||||
*/
|
||||
fun prepareTargetCommandLine(sdk: Sdk, targetCommandLineBuilder: TargetedCommandLineBuilder)
|
||||
|
||||
/**
|
||||
* Some flavors do not need data at all: the only thing thy need is sdk homepath
|
||||
*/
|
||||
object Empty : PyFlavorData {
|
||||
override fun prepareTargetCommandLine(sdk: Sdk, targetCommandLineBuilder: TargetedCommandLineBuilder) {
|
||||
if (sdk.homePath.isNullOrBlank()) {
|
||||
|
||||
Reference in New Issue
Block a user