;ò ²Ù@c@sâdkZdkZdklZlZlZlZy eZWne j odZdZ nXd„Z d„Z e ƒZ e ƒZe oededƒn7e oeoededƒneded d ƒd d fZdS( N(sLOGsPROBLEMsDEBUGsERRORiicCsby/dk}tdtdd|idƒtSWn,tj o }tdtddƒt SnXdS(s try to find PIL NsCMFPhotos PIL founds+The Python Imaging Library was found at %s.is PIL not foundsSThe Python Imaging Library (http://www.pythonware.com/products/pil/) was not found.( s PIL.ImagesPILsLOGsDEBUGs__path__sTrues ImportErrorserrsPROBLEMsFalse(sPILserr((sA/mnt/gmirror/ports/www/zope-cmfphoto/work/CMFPhoto/imageengine.pysfindPIL s   cCstidjo d}nd}tid}gi}|iti ƒD]}||ƒqG~}x|D]y}ti i |ƒo`|gi}ti|ƒD]}||iƒƒqš~jotdtdd|ƒtSqàqgqgWtdtdd |ƒtSd S( s7try to find the convert utility in the search path swin32s convert.exesconvertsPATHsCMFPhotosImageMagick foundsAThe ImageMagick convert tool was found at %s in your search path.sImageMagick not foundsIThe ImageMagick convert tool wasn't found in your search path: %sN(ssyssplatformsconvertsossenvironsenvPathsappends_[1]ssplitspathsepspssyspathspathsisdirslistdirsentryslowersLOGsDEBUGsTruesPROBLEMsFalse(ssyspathsconvertsps_[1]sentryspathsenvPath((sA/mnt/gmirror/ports/www/zope-cmfphoto/work/CMFPhoto/imageengine.pys findConverts   3=    sCMFPhotosis using PIL to resize photos.s7is using the ImageMagick convert tool to resize photos.s"No image converting tool was foundsdCMFPhoto wasn't able to find PIL or ImageMagick! CMFPhoto needs one of these tools to resize photos!sisPilAvailablesisConvertAvailable(ssyssosszLOGsLOGsPROBLEMsDEBUGsERRORsTruesdummys NameErrorsFalsesfindPILs findConvertsisPilAvailablesisConvertAvailables__all__(s findConvertsdummysfindPILsFalsesLOGs__all__sTruesisConvertAvailablessyssERRORsDEBUGsPROBLEMsossisPilAvailable((sA/mnt/gmirror/ports/www/zope-cmfphoto/work/CMFPhoto/imageengine.pys?s$