io.github.danielTucano.python.PythonConfig.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of matplotlib4k Show documentation
Show all versions of matplotlib4k Show documentation
Matplotlib for kotlin: A simple graph plot library for kotlin with powerful python matplotlib
The newest version!
package io.github.danielTucano.python
class PythonConfig private constructor(val pyenv: String?, val virtualenv: String?, val pythonBinPath: String?) {
companion object {
@JvmStatic
fun systemDefaultPythonConfig(): PythonConfig {
return PythonConfig(null, null, null)
}
@JvmStatic
fun pyenvConfig(pyenv: String?): PythonConfig {
return PythonConfig(pyenv, null, null)
}
@JvmStatic
fun pyenvVirtualenvConfig(pyenv: String?, virtualenv: String?): PythonConfig {
return PythonConfig(pyenv, virtualenv, null)
}
@JvmStatic
fun pythonBinPathConfig(pythonBinPath: String?): PythonConfig {
return PythonConfig(null, null, pythonBinPath)
}
}
}