gpg: don't hardcode Python binary

nistp521
Roman Zeyde 7 years ago
parent 3d5717dca1
commit a2d0c1067d
No known key found for this signature in database
GPG Key ID: 87CAE5FA46917CBB

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

Loading…
Cancel
Save