Merge pull request #143 from triffid/check-bin-dir-for-config
also check slic3r bin directory for config
This commit is contained in:
commit
ac8a33a40a
@ -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";
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user