Browse Source

try agentpath before path

master
David Beltra 2 years ago
parent
commit
2463578b14
1 changed files with 9 additions and 3 deletions
  1. +9
    -3
      platform_Windows.py

+ 9
- 3
platform_Windows.py View File

@ -1,10 +1,16 @@
# coding=UTF-8
import os
from common import which, GnuPGNotFound
def gpg_executable(thunderbird_base):
for p in os.environ["PATH"].split(os.pathsep):
if 'Gpg4win' in p:
return os.path.join(p, 'gpg.exe')
enigmail_gpg = enigmail_agentPath(thunderbird_base)
gpg = enigmail_gpg if enigmail_gpg else which('gpg.exe')
if not gpg:
raise GnuPGNotFound()
else:
return gpg
thunderbird_base = os.path.join(os.environ['APPDATA'], 'Thunderbird')

Loading…
Cancel
Save