|
|
- # 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()
- else:
- return gpg
-
- per_user_directory = environ['HOME'] + '/.pEp'
|