From: Anti V. <du...@us...> - 2004-11-09 23:46:35
|
Update of /cvsroot/tuxaator/tuxaator In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9534 Modified Files: tuxaator Log Message: + plugins should now be specified in the config file, they are no longer globbed from the Plugins directory Index: tuxaator =================================================================== RCS file: /cvsroot/tuxaator/tuxaator/tuxaator,v retrieving revision 1.87 retrieving revision 1.88 diff -C2 -d -r1.87 -r1.88 *** tuxaator 23 Apr 2004 20:01:31 -0000 1.87 --- tuxaator 9 Nov 2004 23:46:15 -0000 1.88 *************** *** 82,91 **** # load the required plugins my ($_plugin,$_id); ! my @plugins_to_load = bsd_glob('Plugins/*/Plugin.pm'); # well, dat is no good, I need to way to specify plugins in the ini file foreach my $plugin (@plugins_to_load) { ! my($pname) = $plugin =~ /Plugins\/(.*)\/Plugin.pm$/; print "Loading $pname... "; unless (eval "require Plugins::${pname}::Plugin") --- 82,94 ---- # load the required plugins my ($_plugin,$_id); ! ! my @plugins_to_load = split "," => $config{'load_plugins'}; ! #my @plugins_to_load = bsd_glob('Plugins/*/Plugin.pm'); # well, dat is no good, I need to way to specify plugins in the ini file foreach my $plugin (@plugins_to_load) { ! #my($pname) = $plugin =~ /Plugins\/(.*)\/Plugin.pm$/; ! my $pname = $plugin; print "Loading $pname... "; unless (eval "require Plugins::${pname}::Plugin") |