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

# coding=UTF-8
from thunderbird import enigmail_agentPath
from common import which, GnuPGNotFound
from os import environ
def gpg_executable(thunderbird_base):
enigmail_gpg = enigmail_agentPath(thunderbird_base)
gpg2 = enigmail_gpg if enigmail_gpg else which('gpg2')
gpg = gpg2 if gpg2 else which('gpg')
if not gpg:
raise GnuPGNotFound()
return gpg
per_user_directory = environ['HOME'] + '/.pEp'