Skip to content

Commit

Permalink
Display portable paths in posix venv activation commands (#5956)
Browse files Browse the repository at this point in the history
Closes #5950
  • Loading branch information
zanieb committed Aug 9, 2024
1 parent 892bbe8 commit 0dc034c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/uv/src/commands/venv.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0dc034c

Please sign in to comment.