From 3b9c00e02a3b01a2c12696ead06fd85f28e29c1c Mon Sep 17 00:00:00 2001 From: Roman Zeyde Date: Sun, 1 Jul 2018 11:46:16 +0300 Subject: [PATCH] Default to $GNUPGHOME when not specified on commandline --- libagent/gpg/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libagent/gpg/__init__.py b/libagent/gpg/__init__.py index 61f9b9e..e603f7e 100644 --- a/libagent/gpg/__init__.py +++ b/libagent/gpg/__init__.py @@ -291,7 +291,7 @@ def main(device_type): p.add_argument('-v', '--verbose', default=0, action='count') p.add_argument('-s', '--subkey', default=False, action='store_true') - p.add_argument('--homedir', type=str, + p.add_argument('--homedir', type=str, default=os.environ.get('GNUPGHOME'), help='Customize GnuPG home directory for the new identity.') p.add_argument('--pin-entry-binary', type=str, default='pinentry',