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.

18 lines
446 B

  1. # coding=UTF-8
  2. from thunderbird import enigmail_agentPath
  3. from common import which, GnuPGNotFound
  4. from os import environ
  5. def gpg_executable(thunderbird_base):
  6. enigmail_gpg = enigmail_agentPath(thunderbird_base)
  7. gpg2 = enigmail_gpg if enigmail_gpg else which('gpg2')
  8. gpg = gpg2 if gpg2 else which('gpg')
  9. if not gpg:
  10. raise GnuPGNotFound()
  11. else:
  12. return gpg
  13. per_user_directory = environ['HOME'] + '/.pEp'