diff options
-rw-r--r-- | lib/Crawl/Bot.pm | 4 |
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 => ( |