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 7a9828d..7c43b83 100644
--- a/compiler/cpp/src/generate/t_py_generator.cc
+++ b/compiler/cpp/src/generate/t_py_generator.cc
@@ -735,7 +735,7 @@
   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 <<