mirror of
				https://github.com/python-pillow/Pillow.git
				synced 2025-10-31 16:07:30 +03:00 
			
		
		
		
	Fix tcl/tk loading error handling
Co-authored-by: Ondrej Baranovič <nulano@nulano.eu>
This commit is contained in:
		
							parent
							
								
									cc448f235c
								
							
						
					
					
						commit
						e945ab382a
					
				|  | @ -368,7 +368,7 @@ load_tkinter_funcs(void) { | ||||||
|     } else if (found_tk != 1) { |     } else if (found_tk != 1) { | ||||||
|         PyErr_SetString(PyExc_RuntimeError, "Could not find Tk routines"); |         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 */ | #else /* not Windows */ | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user