[Rt-commit] r19948 - in rt/3.999/trunk: lib
sartak at bestpractical.com
sartak at bestpractical.com
Mon Jun 8 15:11:35 EDT 2009
Author: sartak
Date: Mon Jun 8 15:11:35 2009
New Revision: 19948
Modified:
rt/3.999/trunk/lib/RT.pm
rt/3.999/trunk/t/plugin.t
Log:
RT->local_lib_path
Modified: rt/3.999/trunk/lib/RT.pm
==============================================================================
--- rt/3.999/trunk/lib/RT.pm (original)
+++ rt/3.999/trunk/lib/RT.pm Mon Jun 8 15:11:35 2009
@@ -285,7 +285,7 @@
my @lib_dirs = $self->plugin_dirs('lib');
my @tmp_inc;
- my $local_lib = Jifty::Util->app_root . '/local/lib';
+ my $local_lib = $self->local_lib_path;
for (@INC) {
if ( Cwd::realpath($_) eq $local_lib) {
push @tmp_inc, $_, @lib_dirs;
@@ -347,9 +347,17 @@
}
}
+=head2 local_lib_path
+
+The root of F</local/lib> (user libraries)
+
+=cut
+
+sub local_lib_path { Jifty::Util->app_root . '/local/lib' }
+
=head2 sbin_path
-The root of sbin (system programs)
+The root of F</sbin> (system programs)
=cut
Modified: rt/3.999/trunk/t/plugin.t
==============================================================================
--- rt/3.999/trunk/t/plugin.t (original)
+++ rt/3.999/trunk/t/plugin.t Mon Jun 8 15:11:35 2009
@@ -17,7 +17,7 @@
BEGIN {
use RT;
- my $local_lib = Jifty::Util->app_root . '/local/lib';
+ my $local_lib = RT->local_lib_path;
use lib $local_lib; # plugin need this path in @INC
RT->load_config;
$RT::LocalPluginPath = $RT::BASE_PATH . "/t/plugins";
More information about the Rt-commit
mailing list