mirror of
https://github.com/romanz/amodem.git
synced 2026-04-20 13:16:42 +08:00
gpg: don't hardcode Python binary
This commit is contained in:
@@ -23,7 +23,7 @@ def pin_entry_gui(sp=subprocess):
|
|||||||
'Please enter PIN:').encode('ascii')
|
'Please enter PIN:').encode('ascii')
|
||||||
cmd = ('import sys, pymsgbox; '
|
cmd = ('import sys, pymsgbox; '
|
||||||
'sys.stdout.write(pymsgbox.password(sys.stdin.read()))')
|
'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)
|
p = sp.Popen(args=args, stdin=sp.PIPE, stdout=sp.PIPE, stderr=sp.PIPE)
|
||||||
out, err = p.communicate(label)
|
out, err = p.communicate(label)
|
||||||
exitcode = p.wait()
|
exitcode = p.wait()
|
||||||
|
|||||||
Reference in New Issue
Block a user