fakessh: Use local process's sys.executable.

This commit is contained in:
David Wilson 2017-09-20 18:09:51 +05:30
parent 175fe7a4e1
commit 77b8d28c68
1 changed files with 1 additions and 1 deletions

View File

@ -350,7 +350,7 @@ def run(dest, router, args, deadline=None):
ssh_path = os.path.join(tmp_path, 'ssh')
fp = file(ssh_path, 'w')
try:
fp.write('#!/usr/bin/env python\n')
fp.write('#!%s\n' % (sys.executable,))
fp.write(inspect.getsource(mitogen.core))
fp.write('\n')
fp.write('ExternalContext().main%r\n' % ((