support for running from git or build dir

This commit is contained in:
Oliver Gorwits
2013-03-04 20:31:32 +00:00
parent c4e6e4c8eb
commit 376b1cf9dd
2 changed files with 21 additions and 12 deletions

View File

@@ -3,13 +3,15 @@
use strict;
use warnings FATAL => 'all';
use FindBin;
FindBin::again();
use Path::Class 'dir';
BEGIN {
# stuff useful locations into @INC
use Path::Class 'dir';
unshift @INC,
dir($location)->parent->subdir('lib')->stringify,
dir($location, 'lib')->stringify;
dir($FindBin::RealBin)->parent->subdir('lib')->stringify,
dir($FindBin::RealBin, 'lib')->stringify;
}
use App::Netdisco;