From 4bea9a86e84027e8f52293a1a3bc7f0cf2017720 Mon Sep 17 00:00:00 2001 From: Bastian Eicher Date: Fri, 8 Aug 2014 12:38:45 +0200 Subject: [PATCH] Use subprocess instead of os.spawnvp() to support Windows --- signing.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/signing.py b/signing.py index dcbe33a..3b5dfc4 100644 --- a/signing.py +++ b/signing.py @@ -57,7 +57,8 @@ def run_gpg(default_key, *arguments): arguments = ['--default-key', default_key] + arguments arguments.insert(0, '--use-agent') arguments.insert(0, 'gpg') - if os.spawnvp(os.P_WAIT, 'gpg', arguments): + import subprocess + if subprocess.call(arguments): raise SafeException("Command '%s' failed" % arguments) def sign_unsigned(path, data, key): -- 2.11.4.GIT