From 4d254238299f950c4a7f94ffd2e0c1fba28c74a4 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Wed, 15 Jun 2016 00:14:21 +0000 Subject: drop dependency on File::Path::Expand We still pull it in via Email::LocalDelivery, but that dependency will go away, soon. --- lib/PublicInbox/Config.pm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/PublicInbox/Config.pm b/lib/PublicInbox/Config.pm index a8c5105e..4651861d 100644 --- a/lib/PublicInbox/Config.pm +++ b/lib/PublicInbox/Config.pm @@ -7,7 +7,6 @@ use strict; use warnings; require PublicInbox::Inbox; use PublicInbox::Spawn qw(popen_rd); -use File::Path::Expand qw/expand_filename/; # returns key-value pairs of config directives in a hash # if keys may be multi-value, the value is an array ref containing all values @@ -82,7 +81,7 @@ sub get { $self->{"publicinbox.$inbox.$key"}; } -sub config_dir { $ENV{PI_DIR} || expand_filename('~/.public-inbox') } +sub config_dir { $ENV{PI_DIR} || "$ENV{HOME}/.public-inbox" } sub default_file { my $f = $ENV{PI_CONFIG}; -- cgit v1.2.3-24-ge0c7