From f5ec6e34c6499980dca82918bf7c166289a48f79 Mon Sep 17 00:00:00 2001 From: Hui Zhang Date: Sat, 9 Oct 2021 10:54:31 +0000 Subject: [PATCH] disable __pycache__ --- examples/1xt2x/aishell/path.sh | 1 + examples/1xt2x/baidu_en8k/path.sh | 1 + examples/1xt2x/librispeech/path.sh | 1 + examples/aishell/s0/path.sh | 1 + examples/aishell/s1/path.sh | 1 + examples/callcenter/s1/path.sh | 1 + examples/librispeech/s0/path.sh | 1 + examples/librispeech/s1/path.sh | 1 + examples/librispeech/s2/path.sh | 1 + examples/ted_en_zh/t0/path.sh | 1 + examples/timit/s1/path.sh | 1 + 11 files changed, 11 insertions(+) diff --git a/examples/1xt2x/aishell/path.sh b/examples/1xt2x/aishell/path.sh index 16a0ad63e..40c7cec23 100644 --- a/examples/1xt2x/aishell/path.sh +++ b/examples/1xt2x/aishell/path.sh @@ -4,6 +4,7 @@ export LOCAL_DEEPSPEECH2=`realpath ${PWD}/../` export PATH=${MAIN_ROOT}:${MAIN_ROOT}/utils:${PATH} export LC_ALL=C +export PYTHONDONTWRITEBYTECODE=1 # Use UTF-8 in Python to avoid UnicodeDecodeError when LC_ALL=C export PYTHONIOENCODING=UTF-8 export PYTHONPATH=${MAIN_ROOT}:${PYTHONPATH} diff --git a/examples/1xt2x/baidu_en8k/path.sh b/examples/1xt2x/baidu_en8k/path.sh index 16a0ad63e..40c7cec23 100644 --- a/examples/1xt2x/baidu_en8k/path.sh +++ b/examples/1xt2x/baidu_en8k/path.sh @@ -4,6 +4,7 @@ export LOCAL_DEEPSPEECH2=`realpath ${PWD}/../` export PATH=${MAIN_ROOT}:${MAIN_ROOT}/utils:${PATH} export LC_ALL=C +export PYTHONDONTWRITEBYTECODE=1 # Use UTF-8 in Python to avoid UnicodeDecodeError when LC_ALL=C export PYTHONIOENCODING=UTF-8 export PYTHONPATH=${MAIN_ROOT}:${PYTHONPATH} diff --git a/examples/1xt2x/librispeech/path.sh b/examples/1xt2x/librispeech/path.sh index e95de15b0..a146956ed 100644 --- a/examples/1xt2x/librispeech/path.sh +++ b/examples/1xt2x/librispeech/path.sh @@ -4,6 +4,7 @@ export LOCAL_DEEPSPEECH2=`realpath ${PWD}/../` export PATH=${MAIN_ROOT}:${MAIN_ROOT}/utils:${PATH} export LC_ALL=C +export PYTHONDONTWRITEBYTECODE=1 # Use UTF-8 in Python to avoid UnicodeDecodeError when LC_ALL=C export PYTHONIOENCODING=UTF-8 export PYTHONPATH=${MAIN_ROOT}:${PYTHONPATH} diff --git a/examples/aishell/s0/path.sh b/examples/aishell/s0/path.sh index e6d3a655b..a066676e1 100644 --- a/examples/aishell/s0/path.sh +++ b/examples/aishell/s0/path.sh @@ -3,6 +3,7 @@ export MAIN_ROOT=`realpath ${PWD}/../../../` export PATH=${MAIN_ROOT}:${MAIN_ROOT}/utils:${PATH} export LC_ALL=C +export PYTHONDONTWRITEBYTECODE=1 # Use UTF-8 in Python to avoid UnicodeDecodeError when LC_ALL=C export PYTHONIOENCODING=UTF-8 export PYTHONPATH=${MAIN_ROOT}:${PYTHONPATH} diff --git a/examples/aishell/s1/path.sh b/examples/aishell/s1/path.sh index 6807a9505..dd3ccd8e0 100644 --- a/examples/aishell/s1/path.sh +++ b/examples/aishell/s1/path.sh @@ -3,6 +3,7 @@ export MAIN_ROOT=`realpath ${PWD}/../../../` export PATH=${MAIN_ROOT}:${MAIN_ROOT}/utils:${PATH} export LC_ALL=C +export PYTHONDONTWRITEBYTECODE=1 # Use UTF-8 in Python to avoid UnicodeDecodeError when LC_ALL=C export PYTHONIOENCODING=UTF-8 export PYTHONPATH=${MAIN_ROOT}:${PYTHONPATH} diff --git a/examples/callcenter/s1/path.sh b/examples/callcenter/s1/path.sh index 29841bc10..e4e278da4 100644 --- a/examples/callcenter/s1/path.sh +++ b/examples/callcenter/s1/path.sh @@ -3,6 +3,7 @@ export MAIN_ROOT=`realpath ${PWD}/../../../` export PATH=${MAIN_ROOT}:${MAIN_ROOT}/utils:${PATH} export LC_ALL=C +export PYTHONDONTWRITEBYTECODE=1 # Use UTF-8 in Python to avoid UnicodeDecodeError when LC_ALL=C export PYTHONIOENCODING=UTF-8 export PYTHONPATH=${MAIN_ROOT}:${PYTHONPATH} diff --git a/examples/librispeech/s0/path.sh b/examples/librispeech/s0/path.sh index 8a9345f2e..5ec461d74 100644 --- a/examples/librispeech/s0/path.sh +++ b/examples/librispeech/s0/path.sh @@ -3,6 +3,7 @@ export MAIN_ROOT=`realpath ${PWD}/../../../` export PATH=${MAIN_ROOT}:${MAIN_ROOT}/utils:${PATH} export LC_ALL=C +export PYTHONDONTWRITEBYTECODE=1 # Use UTF-8 in Python to avoid UnicodeDecodeError when LC_ALL=C export PYTHONIOENCODING=UTF-8 export PYTHONPATH=${MAIN_ROOT}:${PYTHONPATH} diff --git a/examples/librispeech/s1/path.sh b/examples/librispeech/s1/path.sh index 439f71ae2..581a350a5 100644 --- a/examples/librispeech/s1/path.sh +++ b/examples/librispeech/s1/path.sh @@ -3,6 +3,7 @@ export MAIN_ROOT=`realpath ${PWD}/../../../` export PATH=${MAIN_ROOT}:${MAIN_ROOT}/tools/sctk/bin:${PWD}/utils:${PATH} export LC_ALL=C +export PYTHONDONTWRITEBYTECODE=1 # Use UTF-8 in Python to avoid UnicodeDecodeError when LC_ALL=C export PYTHONIOENCODING=UTF-8 export PYTHONPATH=${MAIN_ROOT}:${PYTHONPATH} diff --git a/examples/librispeech/s2/path.sh b/examples/librispeech/s2/path.sh index 05a037af8..eec437b60 100644 --- a/examples/librispeech/s2/path.sh +++ b/examples/librispeech/s2/path.sh @@ -3,6 +3,7 @@ export MAIN_ROOT=`realpath ${PWD}/../../../` export PATH=${MAIN_ROOT}:${MAIN_ROOT}/tools/sctk/bin:${PWD}/utils:${PATH} export LC_ALL=C +export PYTHONDONTWRITEBYTECODE=1 # Use UTF-8 in Python to avoid UnicodeDecodeError when LC_ALL=C export PYTHONIOENCODING=UTF-8 export PYTHONPATH=${MAIN_ROOT}:${PYTHONPATH} diff --git a/examples/ted_en_zh/t0/path.sh b/examples/ted_en_zh/t0/path.sh index a7f60425f..f6801e436 100644 --- a/examples/ted_en_zh/t0/path.sh +++ b/examples/ted_en_zh/t0/path.sh @@ -3,6 +3,7 @@ export MAIN_ROOT=`realpath ${PWD}/../../../` export PATH=${MAIN_ROOT}:${MAIN_ROOT}/utils:${PATH} export LC_ALL=C +export PYTHONDONTWRITEBYTECODE=1 # Use UTF-8 in Python to avoid UnicodeDecodeError when LC_ALL=C export PYTHONIOENCODING=UTF-8 export PYTHONPATH=${MAIN_ROOT}:${PYTHONPATH} diff --git a/examples/timit/s1/path.sh b/examples/timit/s1/path.sh index 29841bc10..e4e278da4 100644 --- a/examples/timit/s1/path.sh +++ b/examples/timit/s1/path.sh @@ -3,6 +3,7 @@ export MAIN_ROOT=`realpath ${PWD}/../../../` export PATH=${MAIN_ROOT}:${MAIN_ROOT}/utils:${PATH} export LC_ALL=C +export PYTHONDONTWRITEBYTECODE=1 # Use UTF-8 in Python to avoid UnicodeDecodeError when LC_ALL=C export PYTHONIOENCODING=UTF-8 export PYTHONPATH=${MAIN_ROOT}:${PYTHONPATH}