From: Sven Schöling Date: Fri, 23 Jul 2010 12:13:36 +0000 (+0200) Subject: Zwei console Includes optional machen. X-Git-Tag: release-2.6.2beta1~214 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=b7fa831d13e666c28a8381474bf9458adc8ead3f;p=kivitendo-erp.git Zwei console Includes optional machen. Sind beide nicht absolut notwendig. --- diff --git a/scripts/console b/scripts/console index d7679d0f6..6a9d000db 100755 --- a/scripts/console +++ b/scripts/console @@ -12,7 +12,9 @@ BEGIN { use Config::Std; use Data::Dumper; use Devel::REPL 1.002001; -use Term::ReadLine::Perl::Bind; # use sane key binding for rxvt users +eval { +require Term::ReadLine::Perl::Bind; # use sane key binding for rxvt users +}; read_config 'config/console.conf' => my %config;# if -f 'config/console.conf'; @@ -90,7 +92,7 @@ sub load { } sub reload { - use Module::Reload; + require Module::Reload; Module::Reload->check(); return "modules reloaded";