diff --git a/tools/config/generate_sample.sh b/tools/config/generate_sample.sh index 643006f80f..807883e1f2 100755 --- a/tools/config/generate_sample.sh +++ b/tools/config/generate_sample.sh @@ -73,6 +73,7 @@ then fi BASEDIRESC=`echo $BASEDIR | sed -e 's/\//\\\\\//g'` +find $TARGETDIR -type f -name "*.pyc" -delete FILES=$(find $TARGETDIR -type f -name "*.py" ! -path "*/tests/*" \ -exec grep -l "Opt(" {} + | sed -e "s/^$BASEDIRESC\///g" | sort -u)