Skip to content

Commit 7fdb878

Browse files
authored
Display portable paths in posix venv activation commands (#5956)
Closes #5950
1 parent 4330f97 commit 7fdb878

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/uv/src/commands/venv.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ async fn venv_impl(
368368
/// Quote a path, if necessary, for safe use in a POSIX-compatible shell command.
369369
fn shlex_posix(executable: impl AsRef<Path>) -> String {
370370
// Convert to a display path.
371-
let executable = executable.as_ref().user_display().to_string();
371+
let executable = executable.as_ref().portable_display().to_string();
372372

373373
// Like Python's `shlex.quote`:
374374
// > Use single quotes, and put single quotes into double quotes

0 commit comments

Comments
 (0)