compat fix for IO::All 0.47+
[scpubgit/App-SCS.git] / lib / App / SCS.pm
index 035c803..3d431d7 100644 (file)
@@ -12,7 +12,9 @@ has root_dir => (is => 'lazy');
 
 sub _build_root_dir {
   my ($self) = @_;
-  io->dir(io->dir($self->config->{root_dir})->absolute);
+  # Need to pass '.' rather than undef in the default case - otherwise
+  # IO::All 0.47+ resolves to / (previously undef or '' was '.')
+  io->dir(io->dir($self->config->{root_dir}||'.')->absolute);
 }
 
 has share_dir => (is => 'lazy');