Directory structure like below :
├─thrift_master
├─Common
└─common.thrift
├─folder2
└─f1.thrift
└─types.thrift
└─update.sh
I want to generate python-thrift package by using thrift -nowarn -gen py
Here's my attemp using shell, it works for I'm using absolute directory like Common/*.thrift
, how can I make it work recursively?
cd `dirname $0`
TMP=thrift_master
#...
cd $TMP
for i in Common/*.thrift *.thrift folder2/*.thrift
do
thrift -nowarn -gen py $i
done
echo "update thrift_interface gen files..."