From 7bf354151c04bddf9530f9c1e6fbb5f0a0dfe0fd Mon Sep 17 00:00:00 2001 From: Michael Moon Date: Sat, 31 Dec 2011 17:39:28 +1100 Subject: [PATCH] also check slic3r bin directory for config --- slic3r.pl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/slic3r.pl b/slic3r.pl index 0fb53578c..96ac2fe01 100755 --- a/slic3r.pl +++ b/slic3r.pl @@ -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"; }