Skip to content

Commit

Permalink
Update src/build_context.rs
Browse files Browse the repository at this point in the history
Co-authored-by: konstin <[email protected]>
  • Loading branch information
messense and konstin authored Apr 21, 2021
1 parent ec055d1 commit 2c0c729
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/build_context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ pub enum ProjectLayout {
impl ProjectLayout {
/// Checks whether a python module exists besides Cargo.toml with the right name
pub fn determine(project_root: impl AsRef<Path>, module_name: &str) -> Result<ProjectLayout> {
// A dot in the module name means the extension module goes into the module folder specified by the path
let parts: Vec<&str> = module_name.split('.').collect();
let (python_module, rust_module, extension_name) = if parts.len() > 1 {
let mut rust_module = project_root.as_ref().to_path_buf();
Expand Down

0 comments on commit 2c0c729

Please sign in to comment.