NAME

Krang::lib - setup Krang library search path


SYNOPSIS

  use Krang::ClassLoader 'lib';
  # reload lib dirs when needed (ex. addon install)
  pkg('lib')->reload();


DESCRIPTION

This module is responsible for setting up the search path for Krang's Perl libraries. It handles setting @INC and $ENV{PERL5LIB} to correct values.

NOTE: Krang::lib is used by Krang::Script, so in most cases you should just use Krang::Script and leave it at that.


INTERFACE

Krang::lib->reload()

Call to reload library paths. This is only needed when something new is added, removal is handled automatically by Perl.