also check slic3r bin directory for config

This commit is contained in:
Michael Moon 2011-12-31 17:39:28 +11:00
parent 62ee79f0c9
commit 7bf354151c

View File

@ -39,6 +39,9 @@ my %cli_options = ();
if ($opt{load}) { if ($opt{load}) {
if (-e $opt{load}) { if (-e $opt{load}) {
Slic3r::Config->load($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 { } else {
$opt{ignore_nonexistent_config} or die "Cannot find specified configuration file.\n"; $opt{ignore_nonexistent_config} or die "Cannot find specified configuration file.\n";
} }