Re: [mh] DateTime::Locale
Paul Onley <[email protected]>
| Newsgroups | gmane.comp.misc.misterhouse.user |
|---|---|
| Message-ID | <[email protected]> |
Thanks Brian, I was afraid it was distributed throughout the code. I was just looking for a convenient compromise between "out ot the box" for those who only use perl for mh and telling mh to only use the users perl libs for those who use perl for other things. I will just change modules one at a time as I run into errors in the future, at least now I know to look in libs first for this kind of issue. I use perl for a lot of cgi stuff monitoring my house, temps and heavy users, and in hindsight I know that many of my scripts use DateTime heavily and I have used it in some of my mh stuff as well so at least now I know. As time permits I will look at the suggestions you have made and maybe gain a little more familiarity with the guts of mh at the same time. Thanks Again Paul On 12/22/20 5:29 PM, Brian M wrote: > 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 > ________________________________________________________ To unsubscribe from this list, go to: https://lists.sourceforge.net/lists/listinfo/misterhouse-users