X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/deb4d2dbb676d7d6f69dfe7815d6e0cb09bd4a44..53593baa211863fbf66540cf1bcc36c8fb37257f:/scripts/dbconnect.pl diff --git a/scripts/dbconnect.pl b/scripts/dbconnect.pl index 6eed2a0cf..734b030c4 100755 --- a/scripts/dbconnect.pl +++ b/scripts/dbconnect.pl @@ -1,12 +1,10 @@ #!/usr/bin/perl BEGIN { - use SL::System::Process; - my $exe_dir = SL::System::Process::exe_dir; + use FindBin; - unshift @INC, "${exe_dir}/modules/override"; # Use our own versions of various modules (e.g. YAML). - push @INC, "${exe_dir}/modules/fallback"; # Only use our own versions of modules if there's no system version. - unshift @INC, $exe_dir; + unshift(@INC, $FindBin::Bin . '/../modules/override'); # Use our own versions of various modules (e.g. YAML). + push (@INC, $FindBin::Bin . '/..'); # '.' will be removed from @INC soon. } use strict;