Skip to content

Commit

Permalink
Revert "Fix issue #481 - include local lib by default"
Browse files Browse the repository at this point in the history
This reverts commit 05e3118.
  • Loading branch information
Alexis Sukrieh committed Oct 1, 2013
1 parent 2e7025e commit a005076
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions lib/Dancer2.pm
Expand Up @@ -5,7 +5,6 @@ package Dancer2;
use strict;
use warnings;
use Class::Load 'load_class';
use Carp 'croak';
use Dancer2::Core;
use Dancer2::Core::Runner;
use Dancer2::Core::App;
Expand Down Expand Up @@ -149,11 +148,6 @@ sub import {
$runner = Dancer2::Core::Runner->new( caller => $script, );
}

# Include the local ./lib directory by default
my $local_libdir = Dancer2::FileUtils::path( $runner->location, 'lib' );
eval "use lib '$local_libdir'" if -d $local_libdir;
croak "Cannot use local lib: $local_libdir: $@" if $@;

my $server = $runner->server;

# the app object
Expand Down

0 comments on commit a005076

Please sign in to comment.