Thrift-1806: Python generation always truncates __init__.py files
authorJake Farrell <jfarrell@apache.org>
Tue, 26 Mar 2013 03:49:37 +0000 (23:49 -0400)
committerJake Farrell <jfarrell@apache.org>
Tue, 26 Mar 2013 03:49:37 +0000 (23:49 -0400)
commit2d26f18a12d20e2bc5063a34ff347558fa91517f
tree99a1d4993f60e3c28cc5046cc3485878329a9414
parent2ff542859813ca95c80b67878db4aa4726a6f296
Thrift-1806: Python generation always truncates __init__.py files
Client: Python
Patch: Nathaniel Cook

When generating python code the generator correctly creates _init.py file for each directory. If the __init_.py file has contents it is always overwritten. This usually isn't a problem unless using the -out flag, then there is a potential to erase non generated code.
compiler/cpp/src/generate/t_py_generator.cc