code to delete old compiled code

This commit is contained in:
Michel Oosterhof 2018-07-21 10:14:50 +00:00
parent 6e974a68de
commit fc93c14845
1 changed files with 8 additions and 0 deletions

View File

@ -162,6 +162,14 @@ fi
find_cowrie_directory $0
cd ${COWRIEDIR}
export PYTHONPATH=${PYTHONPATH}:${COWRIEDIR}/src
# This is for the move to src/ on 2018-07-21
# It deletes old compiled python code
# Can be removed at some time in the future
for dir in ${COWRIEDIR}/twisted ${COWRIEDIR}/cowrie; do
[ -d ${dir} ] && find ${dir} -name '*pyc' | xargs rm -f
done
PIDFILE=var/run/cowrie.pid
set -e