diff --git a/src/Tk/tkImaging.c b/src/Tk/tkImaging.c index 8225756ba..ad503baec 100644 --- a/src/Tk/tkImaging.c +++ b/src/Tk/tkImaging.c @@ -363,7 +363,7 @@ load_tkinter_funcs(void) { } free(hMods); - if (found_tcl != 1) { + if (found_tcl == 0) { PyErr_SetString(PyExc_RuntimeError, "Could not find Tcl routines"); } else if (found_tk == 0) { PyErr_SetString(PyExc_RuntimeError, "Could not find Tk routines");