Simplify GPG homedir setting
This commit is contained in:
@@ -209,10 +209,7 @@ def gpg_command(args, env=None):
|
|||||||
"""Prepare common GPG command line arguments."""
|
"""Prepare common GPG command line arguments."""
|
||||||
if env is None:
|
if env is None:
|
||||||
env = os.environ
|
env = os.environ
|
||||||
cmd = get_gnupg_binary(neopg_binary=env.get('NEOPG_BINARY'))
|
cmd = get_gnupg_binary(neopg_binary=env.get('NEOPG_BINARY')).copy()
|
||||||
homedir = env.get('GNUPGHOME')
|
|
||||||
if homedir:
|
|
||||||
cmd.extend(['--homedir', homedir])
|
|
||||||
return cmd + args
|
return cmd + args
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user