On Sep 28, 12:28 am, Garrett Robinson <
garrett.f.robin...@gmail.com>
wrote:
> When I run gnupg.GPG(), without the gnupghome parameter, it defaults
> sensibly to the home directory of the current user, which is what I
> want. However, if I don't want to rely on the default behavior and
> instead wish to set it manually, I'm using a line like this:
>
> gpg = gnupg.GPG(gnupghome=os.environ['HOME'])
I think that the default home directory for gnu is $HOME/.gnupg, not
$HOME. Try that and see if it works.
Regards,
Vinay Sajip