fix: Allow overriding home/root
[catagits/Catalyst-Runtime.git] / lib / Catalyst / Setup.pm
index d3b1da1..be83e17 100644 (file)
@@ -360,8 +360,8 @@ sub setup_home {
     }
 
     if ( $home ) {
-        $class->config->{home} = $home;
-        $class->config->{root} = dir($home)->subdir('root');
+        $class->config->{home} ||= $home;
+        $class->config->{root} ||= dir($home)->subdir('root');
     }
 }