We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7ca90bc commit 6c5f25aCopy full SHA for 6c5f25a
crates/pet-conda/src/environments.rs
@@ -186,8 +186,8 @@ fn get_conda_dir_from_cmd(cmd_line: String) -> Option<PathBuf> {
186
let conda_exe = resolve_symlink(&conda_exe).unwrap_or(conda_exe);
187
if let Some(cmd_line) = conda_exe.parent() {
188
if let Some(conda_dir) = cmd_line.file_name() {
189
- if conda_dir.to_ascii_lowercase() == "bin"
190
- || conda_dir.to_ascii_lowercase() == "scripts"
+ if conda_dir.to_string_lossy().to_lowercase() == "bin"
+ || conda_dir.to_string_lossy().to_lowercase() == "scripts"
191
{
192
if let Some(conda_dir) = cmd_line.parent() {
193
// Ensure the casing of the paths are correct.
0 commit comments