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
438 B

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