mirror of
https://github.com/astral-sh/uv.git
synced 2025-09-30 14:01:13 +00:00
Display portable paths in posix venv activation commands (#5956)
Closes #5950
This commit is contained in:
parent
4330f9718b
commit
7fdb878fd0
1 changed files with 1 additions and 1 deletions
|
@ -368,7 +368,7 @@ async fn venv_impl(
|
|||
/// Quote a path, if necessary, for safe use in a POSIX-compatible shell command.
|
||||
fn shlex_posix(executable: impl AsRef<Path>) -> String {
|
||||
// Convert to a display path.
|
||||
let executable = executable.as_ref().user_display().to_string();
|
||||
let executable = executable.as_ref().portable_display().to_string();
|
||||
|
||||
// Like Python's `shlex.quote`:
|
||||
// > Use single quotes, and put single quotes into double quotes
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue