diff options
author | Florian Pritz <bluewind@xinu.at> | 2018-03-09 14:53:18 +0100 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2018-12-06 11:05:08 +0100 |
commit | 78dd0cc500f6ce53bda9a0f1de96b4210363ceaf (patch) | |
tree | ba674061e465a1b1c477d1d7760391cb1ba1b4d0 /migrate.pl | |
parent | f668427531b9e81a5e94950722aa8514bfd641a8 (diff) | |
download | bugzilla-78dd0cc500f6ce53bda9a0f1de96b4210363ceaf.tar.gz bugzilla-78dd0cc500f6ce53bda9a0f1de96b4210363ceaf.tar.xz |
Misc fixes
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'migrate.pl')
-rwxr-xr-x | migrate.pl | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/migrate.pl b/migrate.pl index 907e0cab5..0c67df42f 100755 --- a/migrate.pl +++ b/migrate.pl @@ -11,8 +11,15 @@ use strict; use warnings; use File::Basename; -BEGIN { chdir dirname($0); } -use lib qw(. lib local/lib/perl5); +use File::Spec; +BEGIN { + require lib; + my $dir = File::Spec->rel2abs(dirname(__FILE__)); + my $base = File::Spec->catdir($dir); + lib->import($base, File::Spec->catdir($base, "lib"), File::Spec->catdir($base, qw(local lib perl5))); + chdir $base; +} + use Bugzilla; use Bugzilla::Migrate; |