From: Oleg Broytman Date: Thu, 25 Jan 2024 17:18:57 +0000 (+0300) Subject: bin: Improve `compyle` X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=a9641b9731213a7d70247dcc46dcfc1c846df03b;p=dotfiles.git bin: Improve `compyle` Ignore error code. Exclude `tox` and virtual env directories. --- diff --git a/bin/compyle b/bin/compyle index 4050467..da48caf 100755 --- a/bin/compyle +++ b/bin/compyle @@ -5,5 +5,5 @@ if [ -z "$1" ]; then exit 1 fi - python$PY_VER -m compileall "$@" && -exec python$PY_VER -O -m compileall "$@" + python$PY_VER -m compileall -x '\.tox/' -x '\.venv/' -x 'venv/' "$@" +exec python$PY_VER -O -m compileall -x '\.tox/' -x '\.venv/' -x 'venv/' "$@"