X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/7c3c6e8d70ee3c45305700eb90f020a16b1dcdd1..cff913a1c984f82558a7d59dec0b8b1a06c5530d:/scripts/dbconnect.pl diff --git a/scripts/dbconnect.pl b/scripts/dbconnect.pl index 6eed2a0cf..9ba492f5d 100755 --- a/scripts/dbconnect.pl +++ b/scripts/dbconnect.pl @@ -1,12 +1,11 @@ #!/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. + push (@INC, $FindBin::Bin . '/../modules/fallback'); # Only use our own versions of modules if there's no system version. } use strict;