diff --git a/lib/Slic3r/Print.pm b/lib/Slic3r/Print.pm index 12ad2f12f..4615f0bc6 100644 --- a/lib/Slic3r/Print.pm +++ b/lib/Slic3r/Print.pm @@ -88,6 +88,8 @@ sub export_gcode { $self->status_cb->(95, "Running post-processing scripts"); $self->config->setenv; for my $script (@{$self->config->post_process}) { + # Ignore empty post processing script lines. + next if $script =~ /^\s*$/; Slic3r::debugf " '%s' '%s'\n", $script, $output_file; # -x doesn't return true on Windows except for .exe files if (($^O eq 'MSWin32') ? !(-e $script) : !(-x $script)) {