Fix -I issues for win32
Arthur Axel "fREW" Schmidt [Wed, 26 Aug 2009 18:33:32 +0000 (18:33 +0000)]
lib/Catalyst/Restarter/Win32.pm

index 65a8e3e..fb24a23 100644 (file)
@@ -16,7 +16,7 @@ sub _fork_and_start {
 
     # This is totally hack-tastic, and is probably much slower, but it
     # does seem to work.
-    my @command = ( $^X, $0, grep { ! /^\-r/ } @{ $self->argv } );
+    my @command = ( $^X, map("-I$_", @INC), $0, grep { ! /^\-r/ } @{ $self->argv } );
 
     my $child = Proc::Background->new(@command);