python error handling
This commit is contained in:
parent
c982ac9fd3
commit
1c6d547bb2
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user