Ported Config::setenv() to XS

This commit is contained in:
Alessandro Ranellucci 2015-07-01 18:18:25 +02:00
parent f361d8ad43
commit 249088b4f8
4 changed files with 49 additions and 36 deletions

View file

@ -192,14 +192,6 @@ sub save {
__PACKAGE__->write_ini($file, $self->as_ini);
}
sub setenv {
my $self = shift;
foreach my $opt_key (@{$self->get_keys}) {
$ENV{"SLIC3R_" . uc $opt_key} = $self->serialize($opt_key);
}
}
# this method is idempotent by design and only applies to ::DynamicConfig or ::Full
# objects because it performs cross checks
sub validate {