Scripts in bin/ and sbin/ don't load libs from extensions

Hi,

scripts in bin/ and sbin/ only load libs from lib/RT/ and local/lib/RT/
but don’t load libs from extensions.

If you change an method within an extension the bin and sbin scripts use
the default method instead of the changed method within the extension.

Maybe someone can show me the right way to load the extension libs
within the bin and sbin scripts.

-Chris

Hi,

scripts in bin/ and sbin/ only load libs from lib/RT/ and
local/lib/RT/ but don’t load libs from extensions.

If you change an method within an extension the bin and sbin scripts
use the default method instead of the changed method within the
extension.

Maybe someone can show me the right way to load the extension libs
within the bin and sbin scripts.

Which scripts? RT::Init pushes the Plugins into @INC and makes them
available from the command line scripts. An example of where I had to
fix this at some point is ac6d4cac27be4c939df9276c103b30b414390880
which chooses the “use require” solution. Another solution is to
RT::Init from a BEGIN block.

If you have specific examples, it’d be a lot easier to see what’s
going on.

-kevin

Which scripts? RT::Init pushes the Plugins into @INC and makes them
available from the command line scripts. An example of where I had to
fix this at some point is ac6d4cac27be4c939df9276c103b30b414390880
which chooses the “use require” solution. Another solution is to
RT::Init from a BEGIN block.

If you have specific examples, it’d be a lot easier to see what’s
going on.

Hi Kevin,

it was sbin/rt-email-dashboards and I forgot to mention that we are here
using RT 3.8.6.
The commit from above was after 3.8.6. I took rt-email-dashboards from
3.8-trunk and that fixed my problem.

Thanks!

-Chris