[windows] well detect gpgv.exe location

This commit is contained in:
Bezleputh 2014-11-25 10:50:31 +01:00 committed by Romain Bignon
commit cdf3d7b7b7

View file

@ -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