diff --git a/lib/WebGUI/Fork.pm b/lib/WebGUI/Fork.pm index c1d75c2d6..f9d9545f1 100644 --- a/lib/WebGUI/Fork.pm +++ b/lib/WebGUI/Fork.pm @@ -295,7 +295,7 @@ sub forkAndExec { my $id = $self->getId; my $class = ref $self; my $json = JSON::encode_json($request); - my @inc = $class->cleanINC(@INC); + my @inc = map { "-I$_" } $class->cleanINC(@INC); my @argv = (@inc, "-M$class", "-e$class->runCmd()" ); $class->daemonize( $json,