Skip to content

Commit

Permalink
Remove split_paths
Browse files Browse the repository at this point in the history
  • Loading branch information
charliermarsh committed Oct 21, 2024
1 parent ee9b6d6 commit 138c545
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/uv-settings/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -201,8 +201,8 @@ fn locate_system_config_xdg(value: Option<&str>) -> Option<PathBuf> {
let default = "/etc/xdg";
let config_dirs = value.filter(|s| !s.is_empty()).unwrap_or(default);

for dir in env::split_paths(config_dirs) {
let uv_toml_path = dir.join("uv").join("uv.toml");
for dir in config_dirs.split(':').take_while(|s| !s.is_empty()) {
let uv_toml_path = Path::new(dir).join("uv").join("uv.toml");
if uv_toml_path.is_file() {
return Some(uv_toml_path);
}
Expand Down

0 comments on commit 138c545

Please sign in to comment.