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:
parent
a830a3c161
commit
5a844c91f1
@ -89,7 +89,11 @@ sub export_gcode {
|
||||
if (($^O eq 'MSWin32') ? !(-e $script) : !(-x $script)) {
|
||||
die "The configured post-processing script is not executable: check permissions. ($script)\n";
|
||||
}
|
||||
system($script, $output_file);
|
||||
if ($^O eq 'MSWin32' && $script =~ /\.[pP][lL]/) {
|
||||
system($^X, $script, $output_file);
|
||||
} else {
|
||||
system($script, $output_file);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user