From f0d521b49a2aa5d29fa80422280ffee44b215161 Mon Sep 17 00:00:00 2001 From: olli <> Date: Thu, 27 Jun 2024 10:24:14 +0200 Subject: [PATCH] fixes --- gaboshlib/g_python.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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}