Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

don't load plugins from anywhere except user's dir

  • Loading branch information...
commit 5a9c672139134f894f6b4353112f083f9ccac6e7 1 parent abb5398
@grantm authored
Showing with 3 additions and 14 deletions.
  1. +3 −14 bin/bcvi
View
17 bin/bcvi
@@ -345,24 +345,13 @@ sub shell_aliases {
sub load_plugins {
my($class) = @_;
- foreach my $dir ($class->plugin_dirs) {
- foreach my $file (sort glob("$dir/*.pm")) {
- $class->load_plugin_file($file);
- }
+ my $dir = $class->conf_directory();
+ foreach my $file (sort glob("$dir/*.pm")) {
+ $class->load_plugin_file($file);
}
}
-sub plugin_dirs {
- my($class) = @_;
-
- return(
- $class->conf_directory(),
- grep -d $_, map { File::Spec->catdir($_, 'App', 'BCVI') } @INC,
- );
-}
-
-
sub load_plugin_file {
my($class, $file) = @_;
Please sign in to comment.
Something went wrong with that request. Please try again.