Import data from Enigmail to pEp for Thunderbird
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
480 B

2 years ago
2 years ago
  1. # coding=UTF-8
  2. import os
  3. from common import which, GnuPGNotFound
  4. from thunderbird import enigmail_agentPath
  5. def gpg_executable(thunderbird_base):
  6. enigmail_gpg = enigmail_agentPath(thunderbird_base)
  7. gpg = enigmail_gpg if enigmail_gpg else which('gpg.exe')
  8. if not gpg:
  9. raise GnuPGNotFound()
  10. else:
  11. return gpg
  12. thunderbird_base = os.path.join(os.environ['APPDATA'], 'Thunderbird')
  13. per_user_directory = os.path.join(os.environ['LOCALAPPDATA'], 'pEp')