mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-19 11:23:42 +00:00
Check whether the configured post-processing scripts are executable and show an error when they aren't
This commit is contained in:
@@ -87,9 +87,12 @@ sub export_gcode {
|
|||||||
if (@{$self->config->post_process}) {
|
if (@{$self->config->post_process}) {
|
||||||
$self->status_cb->(95, "Running post-processing scripts");
|
$self->status_cb->(95, "Running post-processing scripts");
|
||||||
$self->config->setenv;
|
$self->config->setenv;
|
||||||
for (@{$self->config->post_process}) {
|
for my $script (@{$self->config->post_process}) {
|
||||||
Slic3r::debugf " '%s' '%s'\n", $_, $output_file;
|
Slic3r::debugf " '%s' '%s'\n", $script, $output_file;
|
||||||
system($_, $output_file);
|
if (!-x $script) {
|
||||||
|
die "The configured post-processing script is not executable: check permissions. ($script)\n";
|
||||||
|
}
|
||||||
|
system($script, $output_file);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user