mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-10-17 04:32:51 +02:00
Pass config options as environment variables to post-processing scripts
This commit is contained in:
1 parent
62bd33a766
commit
3e94add8a8
2 files changed
+11
No files matched your search
@@ -528,6 +528,16 @@ sub save {
|
||||
close $fh;
|
||||
}
|
||||
|
||||
sub setenv {
|
||||
my $class = shift;
|
||||
foreach my $opt (sort keys %$Options) {
|
||||
next if $Options->{$opt}{gui_only};
|
||||
my $value = get($opt);
|
||||
$value = $Options->{$opt}{serialize}->($value) if $Options->{$opt}{serialize};
|
||||
$ENV{"SLIC3R_" . uc $opt} = $value;
|
||||
}
|
||||
}
|
||||
|
||||
sub load {
|
||||
my $class = shift;
|
||||
my ($file) = @_;
|
||||
|
||||
Reference in new issue
Block a user