From 09623a38634e62849673e38fe9e7750d9da9b493 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Mon, 15 Feb 2010 02:10:43 -0600 Subject: use an absolute path for the data directory --- lib/Crawl/Bot.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/Crawl/Bot.pm b/lib/Crawl/Bot.pm index 27c41b2..0c57255 100644 --- a/lib/Crawl/Bot.pm +++ b/lib/Crawl/Bot.pm @@ -21,7 +21,9 @@ has data_dir => ( is => 'ro', isa => 'Str', lazy => 1, - default => 'dat', + default => sub { + return File::Spec->rel2abs('dat'); + }, ); has update_time => ( -- cgit v1.2.3-54-g00ecf