changeset 10:636ea715af1e

Switch to GnuPG v2
author Daniele Nicolodi <daniele@grinta.net>
date Mon, 11 Jan 2016 19:45:30 +0100
parents 225885e803b4
children f3d6d73a7184
files bnpparibas.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/bnpparibas.py	Mon Jan 11 19:44:36 2016 +0100
+++ b/bnpparibas.py	Mon Jan 11 19:45:30 2016 +0100
@@ -106,7 +106,7 @@
     def encrypt(self, message, sender, recipient):
         sender = parseaddr(sender)[1]
         recipient = parseaddr(recipient)[1]
-        cmd = [ "gpg", "--homedir", self.homedir, "--sign", "--encrypt",
+        cmd = [ "gpg2", "--homedir", self.homedir, "--sign", "--encrypt",
                 "--batch", "--no-options", "--yes", "--armor",
                 "--local-user", sender, "--recipient", recipient, ]
         p = subprocess.Popen(cmd, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE)