Skip to content

Commit

Permalink
Normalize python source directory path (#2343)
Browse files Browse the repository at this point in the history
Fixes #2290
  • Loading branch information
messense authored Nov 30, 2024
1 parent b39f8ca commit de58de2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/project_layout.rs
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ impl ProjectResolver {
.unwrap_or_default()
.to_vec();
let py_root = match pyproject.and_then(|x| x.python_source()) {
Some(py_src) => project_root.join(py_src),
Some(py_src) => project_root.join(py_src).normalize()?.into_path_buf(),
None => match pyproject.and_then(|x| x.project_name()) {
Some(project_name) => {
// Detect src layout
Expand Down

0 comments on commit de58de2

Please sign in to comment.