Temporary, or maybe not so temporary fix to handle empty

post processing scripts.
This commit is contained in:
bubnikv 2018-01-21 21:08:30 +01:00
parent bd113ea882
commit 8add843ee8

View File

@ -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)) {