summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2010-02-15 02:10:43 -0600
committerJesse Luehrs <doy@tozt.net>2010-02-15 02:10:43 -0600
commit09623a38634e62849673e38fe9e7750d9da9b493 (patch)
treed57c2267c04f84c52c12efed140f3117ca256b66
parent95d05861238a935f69ae874baacf6f3eeb1b554d (diff)
downloadcrawlbot-09623a38634e62849673e38fe9e7750d9da9b493.tar.gz
crawlbot-09623a38634e62849673e38fe9e7750d9da9b493.zip
use an absolute path for the data directory
-rw-r--r--lib/Crawl/Bot.pm4
1 files changed, 3 insertions, 1 deletions
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 => (