When executing G-code post-processing scripts written in perl on windows,

run the perl interpreter, which was used to run the Slic3r.
https://github.com/prusa3d/Slic3r/issues/514
This commit is contained in:
bubnikv 2017-10-03 17:05:47 +02:00
parent a830a3c161
commit 5a844c91f1

View File

@ -89,9 +89,13 @@ sub export_gcode {
if (($^O eq 'MSWin32') ? !(-e $script) : !(-x $script)) {
die "The configured post-processing script is not executable: check permissions. ($script)\n";
}
if ($^O eq 'MSWin32' && $script =~ /\.[pP][lL]/) {
system($^X, $script, $output_file);
} else {
system($script, $output_file);
}
}
}
}
# Export SVG slices for the offline SLA printing.