mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-24 15:13:58 -06:00
also check slic3r bin directory for config
This commit is contained in:
parent
62ee79f0c9
commit
7bf354151c
1 changed files with 3 additions and 0 deletions
|
@ -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";
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue