From 31a9b1440c4cd1d633d67e63e4b7971e2d52a50a Mon Sep 17 00:00:00 2001 From: Pierre Labastie Date: Fri, 10 Apr 2020 10:16:41 +0000 Subject: [PATCH] remove the __pycache__ dirs from comparison analysis --- common/libs/func_compare.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/common/libs/func_compare.sh b/common/libs/func_compare.sh index f28ccb3..d5e2f3d 100644 --- a/common/libs/func_compare.sh +++ b/common/libs/func_compare.sh @@ -61,9 +61,11 @@ wrt_compare_work() { # if [[ "$RUN_ICA" = "y" ]] ; then local DEST_ICA=$DEST_TOPDIR/ICA && \ + # the PRUNEPATH additional setting is to avoid .pyc files to show up in diff ( cat << EOF - @extras/do_copy_files "$PRUNEPATH" $ROOT_DIR $DEST_ICA/$ITERATION >>logs/\$@ 2>&1 && \\ + @PRUNEPATH="$PRUNEPATH \$\$(find /usr/lib -name __pycache__)"; \\ + extras/do_copy_files "\$\$PRUNEPATH" $ROOT_DIR $DEST_ICA/$ITERATION >>logs/\$@ 2>&1 && \\ extras/do_ica_prep $DEST_ICA/$ITERATION >>logs/\$@ 2>&1 EOF ) >> $MKFILE.tmp