uv-python-commands 0.0.103

This is an internal component crate of uv
Documentation
1
2
3
4
5
6
7
8
9
10
11
use anyhow::Result;

use uv_python_managed::python_executable_dir;

use uv_command_support::Printer;
use uv_command_support::{ExitStatus, update_shell};

/// Ensure that the Python executable directory is in PATH.
pub async fn update_shell(printer: Printer) -> Result<ExitStatus> {
    update_shell::update_shell(&python_executable_dir()?, printer).await
}