diff --git a/gaboshlib/g_python.sh b/gaboshlib/g_python.sh index cfa10b2..94bccaa 100644 --- a/gaboshlib/g_python.sh +++ b/gaboshlib/g_python.sh @@ -24,7 +24,10 @@ function g_python { exec {g_fd_python_out}< "$python_output" exec {g_fd_python_error}< "$python_error" fi - + + # read potential old output + read -t 0.001 -u ${g_fd_python_out} g_python_result_old + # send python command echo "$@ print('')" >&${g_fd_python_in}