diff --git a/elements/deploy-targetcli/extra-data.d/module/module-setup.sh b/elements/deploy-targetcli/extra-data.d/module/module-setup.sh index 6c32668f..9c3fad1f 100755 --- a/elements/deploy-targetcli/extra-data.d/module/module-setup.sh +++ b/elements/deploy-targetcli/extra-data.d/module/module-setup.sh @@ -19,7 +19,9 @@ install() { # TODO(bnemec): At some point this will need to be extended to support # Python 3, but for the moment we aren't using that anyway. inst /usr/bin/python + local all_of_python=() while IFS='' read -r -d '' i; do - inst "$i" - done < <(find /usr/lib64/python2.7/ /usr/lib/python2.7/ -type f -print0) + all_of_python+=("$i") + done < <(find /usr/lib64/python2.7/ /usr/lib/python2.7/ -type f -not -name "*.pyc" -not -name "*.pyo" -print0) + inst_multiple "${all_of_python[@]}" }