diff --git a/gaboshlib/g_python.sh b/gaboshlib/g_python.sh index 083da17..300d74a 100644 --- a/gaboshlib/g_python.sh +++ b/gaboshlib/g_python.sh @@ -11,6 +11,11 @@ function g_python { if ! [[ ${g_python_jobs[*]} =~ python-pipeexec.py ]] then mkdir -p ${g_tmp}/${g_rnd} + if [ -s ${g_tmp}/${g_rnd}/python-error ] + then + g_echo_error "From last python run: $(cat ${g_tmp}/${g_rnd}/python-error)" + rm -f ${g_tmp}/${g_rnd}/python-error + fi [ -p ${g_tmp}/${g_rnd}/python-in ] || mkfifo ${g_tmp}/${g_rnd}/python-in [ -p ${g_tmp}/${g_rnd}/python-out ] || mkfifo ${g_tmp}/${g_rnd}/python-out echo "while 1: