diff --git a/gaboshlib/g_python.sh b/gaboshlib/g_python.sh index 854d22a..8cb099c 100644 --- a/gaboshlib/g_python.sh +++ b/gaboshlib/g_python.sh @@ -35,6 +35,7 @@ function g_python { if ! [[ ${g_python_jobs[*]} =~ python-pipeexec.py ]] then g_echo_error "$(cat ${g_tmp}/${g_rnd}/python-error)" + rm ${g_tmp}/${g_rnd}/python-error unset g_python_running return 1 fi @@ -43,7 +44,7 @@ function g_python { then until [ -n "$g_python_result" ] do - read -t 0.3 g_python_result <${g_tmp}/${g_rnd}/python-out + read -t 0.2 g_python_result <${g_tmp}/${g_rnd}/python-out [ -s "${g_tmp}/${g_rnd}/python-error" ] && break done unset g_python_waitforoutput @@ -54,6 +55,7 @@ function g_python { if [ -s "${g_tmp}/${g_rnd}/python-error" ] then g_echo_error "$(cat ${g_tmp}/${g_rnd}/python-error)" + rm ${g_tmp}/${g_rnd}/python-error return 1 fi