From 7fdb878fd0b65dc3c46b5541a84f67ed693183d1 Mon Sep 17 00:00:00 2001 From: Zanie Blue Date: Fri, 9 Aug 2024 11:28:00 -0500 Subject: [PATCH] Display portable paths in posix venv activation commands (#5956) Closes #5950 --- crates/uv/src/commands/venv.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/uv/src/commands/venv.rs b/crates/uv/src/commands/venv.rs index 23397ef24..18746e18f 100644 --- a/crates/uv/src/commands/venv.rs +++ b/crates/uv/src/commands/venv.rs @@ -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) -> 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