From e945ab382aee9d043525c19b53b67d6e47adf2fe Mon Sep 17 00:00:00 2001 From: Javier Dehesa Date: Thu, 5 Jan 2023 00:04:50 +0000 Subject: [PATCH] Fix tcl/tk loading error handling MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Ondrej Baranovič --- src/Tk/tkImaging.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Tk/tkImaging.c b/src/Tk/tkImaging.c index 506bb7008..6ad3aaba1 100644 --- a/src/Tk/tkImaging.c +++ b/src/Tk/tkImaging.c @@ -368,7 +368,7 @@ load_tkinter_funcs(void) { } else if (found_tk != 1) { PyErr_SetString(PyExc_RuntimeError, "Could not find Tk routines"); } - return (int) ((found_tcl != 1) && (found_tk != 1)); + return (int) ((found_tcl != 1) || (found_tk != 1)); } #else /* not Windows */