24 lines
544 B
Bash
Executable file
24 lines
544 B
Bash
Executable file
#!/usr/bin/env bash
|
|
set -e
|
|
|
|
# Directory of *this* script
|
|
this_dir="$( cd "$( dirname "$0" )" && pwd )"
|
|
src_dir="$(realpath "${this_dir}/..")"
|
|
|
|
venv="${src_dir}/.venv"
|
|
if [[ -d "${venv}" ]]; then
|
|
source "${venv}/bin/activate"
|
|
fi
|
|
|
|
python_files=("${src_dir}/espeak_phonemizer/"*.py)
|
|
|
|
export PYTHONPATH="${src_dir}"
|
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
black "${python_files[@]}"
|
|
isort "${python_files[@]}"
|
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
echo "OK"
|