Re: [mh] DateTime::Locale
Brian M <[email protected]>
| Newsgroups | gmane.comp.misc.misterhouse.user |
|---|---|
| Message-ID | <[email protected]> |
Paul, MH has a bunch of stand-alone binaries in addition to bin/mh that all manipulate the library search list (aka @INC). To change it thoroughly, you'd have to manipulate about 30 files. However, you're probably just interested in changing the bin/mh program itself. It looks to me like you've got a couple of options, short of modifying the code directly: First, at start-up MH logs the contents of @INC. Just grep the print/log for 'Perl @INC contains'. Once you have that, you could place your modules in any of the directories that appear before lib/site. Another possibility would be to modify the lib_dir configuration value to add a new directory with your code in it. Navigate your way through the MH web interface menus to the INI Editor (on my system from the home page it's "Mr. House Home" -> "Setup MrHouse" -> "INI Editor"). Then in the "Directory" category you'll find "lib_dir", which was blank on my system. Add your new directory in. restart MH, and the log should show your new directory at the head of the @INC list. I've never used it, but testing just now indicates that it works. The more knowledgeable folks on this mailing list may have better ideas, but one of these might get you going. -Brian M. On 12/22/20 10:37 AM, Paul Onley wrote: > Thanks Brian, > > I can understand the original philosophy. For future reference how > would one adjust the mh include list to make sure that my modules are > used? I guess what I am asking as I'm not that familiar with the guts > of mh is where the include list is and can it be easily edited or is > it distributed throughout the code? > > Paul > > BTW, There is a LOT of mh's core code that I do not use so I would not > recommend simply assuming that the shipped Locale.pm doesn't have some > modification that some part of mh requires based on my success with > replacing it. I may well find I have broken some other part of mh but > simply don't use it... YET. ________________________________________________________ To unsubscribe from this list, go to: https://lists.sourceforge.net/lists/listinfo/misterhouse-users