Modify ↓
Ticket #511 (new enhancement)
Hookspath should be prepended to hooks.__path__, not appended
| Reported by: | anonymous | Owned by: | htgoebel |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Hooks | Version: | 1.5.1 |
| Severity: | normal | Keywords: | |
| Cc: |
Description
In mf.py, the private hookpath gets appended to the module search path like so: (about line 438 in mf.py)
if hookspath:
hooks.__path__.extend(hookspath)
I propose it should be changed to:
if hookspath:
hooks.__path__ = hookspath + hooks.__path__
This gives priority to the user hooks rather than the built-in ones.
I wasted a good hour figuring out why my hook module wasn't called...
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

Should this change go also to next bugfix release of 1.5?