$class->setup_home( delete $flags->{home} );
# YAML config support
- my $confpath =
- $class->path_to(
- Catalyst::Utils::appprefix( ref $class || $class ) . '.yml' );
+ my $confpath = $class->config->{file}
+ || $class->path_to(
+ ( Catalyst::Utils::appprefix( ref $class || $class ) . '.yml' ) );
my $conf = {};
$conf = YAML::LoadFile($confpath) if -f $confpath;
my $oldconf = $class->config;