mirror of
https://github.com/romanz/amodem.git
synced 2026-04-18 20:25:59 +08:00
Allow using $PATH when looking for GPG binary
It's needed for running neopg (instead of gnupg).
This commit is contained in:
@@ -240,7 +240,7 @@ def run_agent(device_type):
|
|||||||
log.debug('os.environ: %s', os.environ)
|
log.debug('os.environ: %s', os.environ)
|
||||||
log.debug('pid: %d, parent pid: %d', os.getpid(), os.getppid())
|
log.debug('pid: %d, parent pid: %d', os.getpid(), os.getppid())
|
||||||
try:
|
try:
|
||||||
env = {'GNUPGHOME': args.homedir}
|
env = {'GNUPGHOME': args.homedir, 'PATH': os.environ['PATH']}
|
||||||
pubkey_bytes = keyring.export_public_keys(env=env)
|
pubkey_bytes = keyring.export_public_keys(env=env)
|
||||||
device_type.ui = device.ui.UI(device_type=device_type,
|
device_type.ui = device.ui.UI(device_type=device_type,
|
||||||
config=vars(args))
|
config=vars(args))
|
||||||
|
|||||||
Reference in New Issue
Block a user