gpg: don't hardcode Python binary

This commit is contained in:
Roman Zeyde
2017-10-27 11:27:40 +03:00
parent 3d5717dca1
commit a2d0c1067d

View File

@@ -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()