[windows] well detect gpgv.exe location
This commit is contained in:
parent
cbc67ee5a6
commit
cdf3d7b7b7
1 changed files with 1 additions and 1 deletions
|
|
@ -765,7 +765,7 @@ class Keyring(object):
|
|||
return os.getenv('GPGV_EXECUTABLE')
|
||||
paths = os.getenv('PATH', os.defpath).split(os.pathsep)
|
||||
for path in paths:
|
||||
for ex in ('gpgv2', 'gpgv'):
|
||||
for ex in ('gpgv2', 'gpgv', 'gpgv2.exe', 'gpgv.exe'):
|
||||
fpath = os.path.join(path, ex)
|
||||
if os.path.exists(fpath) and os.access(fpath, os.X_OK):
|
||||
return fpath
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue