can download plant phenotype data in the same way as plot phenotype data
[sgn.git] / lib / SGN / Devel / lib_relative.pm
blob7a2e3a2738c3c6144f904ee2a643ccdf62e88e6d
1 package SGN::Devel::lib_relative;
3 =head1 NAME
5 SGN::Devel::lib_relative - like lib.pm, but also accepts paths
6 relative to the base directory of the distribution. Works for
7 absolute paths too.
9 =head1 SYNOPSIS
11 use SGN::Devel::lib_relative '../ITAG/lib', '../Phenome/lib';
13 =cut
15 use strict;
16 use warnings;
18 use lib;
20 use Path::Class;
22 use Catalyst::Utils;
24 my $home = Catalyst::Utils::home( __PACKAGE__ );
26 sub import {
27 my $class = shift;
28 lib->import(
29 map dir( $_ )->absolute( $home )->stringify,