diff options
author | Eric Wong <e@80x24.org> | 2016-06-15 00:14:21 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2016-06-15 00:15:04 +0000 |
commit | 4d254238299f950c4a7f94ffd2e0c1fba28c74a4 (patch) | |
tree | 45c11daa4f5c0e1f7b0db1ff7045fb68dc3becc7 /lib | |
parent | b6974dbc81665427413020414a668ddb742e68f9 (diff) | |
download | public-inbox-4d254238299f950c4a7f94ffd2e0c1fba28c74a4.tar.gz |
We still pull it in via Email::LocalDelivery, but that dependency will go away, soon.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/PublicInbox/Config.pm | 3 |
1 files changed, 1 insertions, 2 deletions
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}; |