Skip to content

Commit

Permalink
Add .pth to force_include too in editable mode
Browse files Browse the repository at this point in the history
  • Loading branch information
sbidoul committed Jun 1, 2024
1 parent 796810d commit a576e35
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/hatch_odoo/build_hook.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,3 +65,7 @@ def initialize(self, version: str, build_data: dict[str, Any]) -> None:
force_include_editable[pth_file.name] = (
f"{project_name}_editable_odoo_addons.pth"
)
force_include = build_data["force_include"]
force_include[pth_file.name] = (
f"{project_name}_editable_odoo_addons.pth"
)

0 comments on commit a576e35

Please sign in to comment.