Commit 77b8d28c authored by David Wilson's avatar David Wilson

fakessh: Use local process's sys.executable.

parent 175fe7a4
...@@ -350,7 +350,7 @@ def run(dest, router, args, deadline=None): ...@@ -350,7 +350,7 @@ def run(dest, router, args, deadline=None):
ssh_path = os.path.join(tmp_path, 'ssh') ssh_path = os.path.join(tmp_path, 'ssh')
fp = file(ssh_path, 'w') fp = file(ssh_path, 'w')
try: try:
fp.write('#!/usr/bin/env python\n') fp.write('#!%s\n' % (sys.executable,))
fp.write(inspect.getsource(mitogen.core)) fp.write(inspect.getsource(mitogen.core))
fp.write('\n') fp.write('\n')
fp.write('ExternalContext().main%r\n' % (( fp.write('ExternalContext().main%r\n' % ((
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment