mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-11-02 20:51:23 -07:00 
			
		
		
		
	Check whether the configured post-processing scripts are executable and show an error when they aren't
This commit is contained in:
		
							parent
							
								
									89f0c60fc8
								
							
						
					
					
						commit
						35da87a90a
					
				
					 1 changed files with 6 additions and 3 deletions
				
			
		| 
						 | 
				
			
			@ -87,9 +87,12 @@ sub export_gcode {
 | 
			
		|||
    if (@{$self->config->post_process}) {
 | 
			
		||||
        $self->status_cb->(95, "Running post-processing scripts");
 | 
			
		||||
        $self->config->setenv;
 | 
			
		||||
        for (@{$self->config->post_process}) {
 | 
			
		||||
            Slic3r::debugf "  '%s' '%s'\n", $_, $output_file;
 | 
			
		||||
            system($_, $output_file);
 | 
			
		||||
        for my $script (@{$self->config->post_process}) {
 | 
			
		||||
            Slic3r::debugf "  '%s' '%s'\n", $script, $output_file;
 | 
			
		||||
            if (!-x $script) {
 | 
			
		||||
                die "The configured post-processing script is not executable: check permissions. ($script)\n";
 | 
			
		||||
            }
 | 
			
		||||
            system($script, $output_file);
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue