From 8add843ee8a8561888bb6e0aad9a27f500899e6e Mon Sep 17 00:00:00 2001 From: bubnikv Date: Sun, 21 Jan 2018 21:08:30 +0100 Subject: [PATCH] Temporary, or maybe not so temporary fix to handle empty post processing scripts. --- lib/Slic3r/Print.pm | 2 ++ 1 file changed, 2 insertions(+) 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)) {