fix(python): panic on empty pip_binary in config

Signed-off-by: innocentzero <isfarulhaque@proton.me>
This commit is contained in:
innocentzero
2024-02-15 12:58:50 +05:30
parent 82bf880849
commit e7a10cc0ec
+5 -1
View File
@@ -25,7 +25,7 @@ pub struct Config {
#[serde(default)]
pub disabled_backends: Vec<String>,
/// Choose whether to use pipx instead of pip for python package management
#[serde(default)]
#[serde(default = "pip")]
pub pip_binary: String,
}
@@ -37,6 +37,10 @@ fn aur_helper() -> String {
"paru".into()
}
fn pip() -> String {
"pip".into()
}
impl Config {
/// Load the config from the associated file.
///