awips2/deltaScripts/20.3.1/DR7917/7917_delete_pyc_pyo_files.sh
2022-05-05 12:34:50 -05:00

9 lines
381 B
Bash

#!/bin/bash
# This script deletes all .pyc and .pyo Python files from the localization
# tree. It also deletes the md5 files corresponding to those files.
dir=/awips2/edex/data/utility
echo "INFO: Started deleting all compiled Python files from ${dir}"
find "${dir}" -type f -regex '.*\.py[co]\(\.md5\)?$' -delete
echo "INFO: Finished deleting compiled Python files from ${dir}"