From 77b8d28c688690669b89b15226d16e7f5c876f85 Mon Sep 17 00:00:00 2001 From: David Wilson Date: Wed, 20 Sep 2017 18:09:51 +0530 Subject: [PATCH] fakessh: Use local process's sys.executable. --- mitogen/fakessh.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mitogen/fakessh.py b/mitogen/fakessh.py index 4cc95e54..2c797763 100644 --- a/mitogen/fakessh.py +++ b/mitogen/fakessh.py @@ -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' % ((