From a2d0c1067dbfb4501d442d07500898b7bbd79b88 Mon Sep 17 00:00:00 2001 From: Roman Zeyde Date: Fri, 27 Oct 2017 11:27:40 +0300 Subject: [PATCH] gpg: don't hardcode Python binary --- libagent/device/trezor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libagent/device/trezor.py b/libagent/device/trezor.py index 8acff29..0601ea9 100644 --- a/libagent/device/trezor.py +++ b/libagent/device/trezor.py @@ -23,7 +23,7 @@ def pin_entry_gui(sp=subprocess): 'Please enter PIN:').encode('ascii') cmd = ('import sys, pymsgbox; ' 'sys.stdout.write(pymsgbox.password(sys.stdin.read()))') - args = ['python', '-c', cmd] + args = [sys.executable, '-c', cmd] p = sp.Popen(args=args, stdin=sp.PIPE, stdout=sp.PIPE, stderr=sp.PIPE) out, err = p.communicate(label) exitcode = p.wait()