Code Review
/
common
/
thrift.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
ecf490e
)
Gen code with /usr/bin/env python not /usr/bin/python
author
Mark Slee
<mcslee@apache.org>
Wed, 21 Feb 2007 00:22:33 +0000
(
00:22
+0000)
committer
Mark Slee
<mcslee@apache.org>
Wed, 21 Feb 2007 00:22:33 +0000
(
00:22
+0000)
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
compiler/cpp/src/generate/t_py_generator.cc
patch
|
blob
|
history
diff --git
a/compiler/cpp/src/generate/t_py_generator.cc
b/compiler/cpp/src/generate/t_py_generator.cc
index
7a9828d
..
7c43b83
100644
(file)
--- 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 <<