Skip to main content

uv_python_commands/
update_shell.rs

1use anyhow::Result;
2
3use uv_python_managed::python_executable_dir;
4
5use uv_command_support::Printer;
6use uv_command_support::{ExitStatus, update_shell};
7
8/// Ensure that the Python executable directory is in PATH.
9pub async fn update_shell(printer: Printer) -> Result<ExitStatus> {
10    update_shell::update_shell(&python_executable_dir()?, printer).await
11}