- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
perl/lib/BarnOwl/ModuleLoader.pm
r9de39410 rbe98ba5 6 6 use lib (BarnOwl::get_data_dir() . "/modules/"); 7 7 use PAR (BarnOwl::get_data_dir() . "/modules/*.par"); 8 use PAR ( $ENV{HOME} . "/.owl/modules/*.par");8 use PAR (BarnOwl::get_config_dir() . "/modules/*.par"); 9 9 10 10 sub load_all { 11 11 my %modules; 12 12 my @modules; 13 14 my @moddirs = (); 15 push @moddirs, BarnOwl::get_data_dir() . "/modules"; 16 push @moddirs, BarnOwl::get_config_dir() . "/modules"; 13 17 14 for my $dir ( BarnOwl::get_data_dir() . "/modules", 15 $ENV{HOME} . "/.owl/modules" ) { 18 for my $dir (@moddirs) { 16 19 opendir(my $dh, $dir) or next; 17 20 while(defined(my $f = readdir($dh))) {
Note: See TracChangeset
for help on using the changeset viewer.