This commit is contained in:
olli 2024-06-27 10:24:14 +02:00
parent 4d0bf673a5
commit f0d521b49a

View File

@ -24,7 +24,10 @@ function g_python {
exec {g_fd_python_out}< "$python_output" exec {g_fd_python_out}< "$python_output"
exec {g_fd_python_error}< "$python_error" exec {g_fd_python_error}< "$python_error"
fi fi
# read potential old output
read -t 0.001 -u ${g_fd_python_out} g_python_result_old
# send python command # send python command
echo "$@ echo "$@
print('')" >&${g_fd_python_in} print('')" >&${g_fd_python_in}