mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-05-12 02:49:07 +08:00
Bugfix: we can't check for executability of post-processing scripts on Windows. #2616
This commit is contained in:
parent
70c032868a
commit
9d435c8f4d
@ -89,7 +89,8 @@ sub export_gcode {
|
|||||||
$self->config->setenv;
|
$self->config->setenv;
|
||||||
for my $script (@{$self->config->post_process}) {
|
for my $script (@{$self->config->post_process}) {
|
||||||
Slic3r::debugf " '%s' '%s'\n", $script, $output_file;
|
Slic3r::debugf " '%s' '%s'\n", $script, $output_file;
|
||||||
if (!-x $script) {
|
# -x doesn't return true on Windows except for .exe files
|
||||||
|
if (($^O eq 'MSWin32') ? !(-e $script) : !(-x $script)) {
|
||||||
die "The configured post-processing script is not executable: check permissions. ($script)\n";
|
die "The configured post-processing script is not executable: check permissions. ($script)\n";
|
||||||
}
|
}
|
||||||
system($script, $output_file);
|
system($script, $output_file);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user