Merge pull request #143 from triffid/check-bin-dir-for-config

also check slic3r bin directory for config
This commit is contained in:
Alessandro Ranellucci 2012-01-11 13:17:02 -08:00
commit ac8a33a40a

View File

@ -39,6 +39,9 @@ my %cli_options = ();
if ($opt{load}) {
if (-e $opt{load}) {
Slic3r::Config->load($opt{load});
} elsif (-e "$FindBin::Bin/$opt{load}") {
printf STDERR "Loaded $FindBin::Bin/$opt{load}\n";
Slic3r::Config->load("$FindBin::Bin/$opt{load}");
} else {
$opt{ignore_nonexistent_config} or die "Cannot find specified configuration file.\n";
}