From: Mark Slee Date: Wed, 21 Feb 2007 00:22:33 +0000 (+0000) Subject: Gen code with /usr/bin/env python not /usr/bin/python X-Git-Tag: 0.2.0~1467 X-Git-Url: https://source.supwisdom.com/gerrit/gitweb?a=commitdiff_plain;h=2c2a648023209222bdc1f547eee28582e1b5be6e;p=common%2Fthrift.git Gen code with /usr/bin/env python not /usr/bin/python Summary: More reliable, lets user customize which python to use Reviewed By: dougb git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665005 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/compiler/cpp/src/generate/t_py_generator.cc b/compiler/cpp/src/generate/t_py_generator.cc index 7a9828d1..7c43b836 100644 --- a/compiler/cpp/src/generate/t_py_generator.cc +++ b/compiler/cpp/src/generate/t_py_generator.cc @@ -735,7 +735,7 @@ void t_py_generator::generate_service_remote(t_service* tservice) { f_remote.open(f_remote_name.c_str()); f_remote << - "#!/usr/bin/python" << endl << + "#!/usr/bin/env python" << endl << py_autogen_comment() << endl << "import sys" << endl << "import pprint" << endl <<