From: Moritz Bunkus Date: Wed, 18 Oct 2017 09:06:11 +0000 (+0200) Subject: console: Fix für Entfernen von . aus @INC X-Git-Tag: release-3.5.4~676 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=419facb25a4db9980b1ce634c36d1f1457def49c;p=kivitendo-erp.git console: Fix für Entfernen von . aus @INC --- diff --git a/scripts/console b/scripts/console index cb08e2f03..8bbe93d69 100755 --- a/scripts/console +++ b/scripts/console @@ -5,8 +5,11 @@ use strict; use 5.008; # too much magic in here to include perl 5.6 BEGIN { - unshift @INC, "modules/override"; # Use our own versions of various modules (e.g. YAML). - push @INC, "modules/fallback"; # Only use our own versions of modules if there's no system version. + use FindBin; + + unshift(@INC, $FindBin::Bin . '/../modules/override'); # Use our own versions of various modules (e.g. YAML). + push (@INC, $FindBin::Bin . '/..'); + push (@INC, $FindBin::Bin . '/../modules/fallback'); # Only use our own versions of modules if there's no system version. } use Data::Dumper;