From: Tollef Fog Heen Date: Tue, 25 Feb 2014 12:41:55 +0000 (+0100) Subject: Make it possible to override what .users file to use X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fc84951f0fae5f62ff3717e0a28357855c24b1c9;p=pwstore Make it possible to override what .users file to use --- diff --git a/pws.rb b/pws.rb index 1698451..739b208 100755 --- a/pws.rb +++ b/pws.rb @@ -298,7 +298,7 @@ class GroupConfig def parse_file begin - f = File.open('.users') + f = File.open(File.join(@dirname, '.users')) rescue Exception => e STDERR.puts e exit(1)