diff --git a/src/module_writer.rs b/src/module_writer.rs index fe628f3e7..ba41d0fc7 100644 --- a/src/module_writer.rs +++ b/src/module_writer.rs @@ -964,7 +964,7 @@ pub fn write_uniffi_module( let module; if let Some(python_module) = &project_layout.python_module { if editable { - let base_path = python_module.join(module_name); + let base_path = python_module.join(&project_layout.extension_name); fs::create_dir_all(&base_path)?; let target = base_path.join(&cdylib); fs::copy(artifact, &target).context(format!(