Browse Source

find gpg dir in path

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

+ 3
- 1
platform_Windows.py View File

@ -15,7 +15,9 @@ import os
# thunderbird_base = os.path.dirname(uninstall_path)
def gpg_executable(thunderbird_base):
return os.path.join(os.environ['APPDATA'], 'GnuPG', 'bin', 'gpg.exe')
for p in os.environ["PATH"].split(os.pathsep):
if 'Gpg4win' in p:
return os.path.join(p, 'gpg.exe')
thunderbird_base = os.path.join(os.environ['APPDATA'], 'Thunderbird')

Loading…
Cancel
Save