Show
Ignore:
Timestamp:
11/28/07 18:28:30 (17 years ago)
Author:
jerome
Message:

Now the presence of executable dependencies is tested at runtime.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pkpgcounter/trunk/pkpgpdls/inkcoverage.py

    r520 r527  
    2525import sys 
    2626 
    27 from PIL import Image 
     27import pdlparser 
    2828 
    29 import pdlparser 
     29try : 
     30    from PIL import Image 
     31except ImportError :     
     32    sys.stderr.write("ERROR: You MUST install the Python Imaging Library (python-imaging) for pkpgcounter to work.\n") 
     33    raise pdlparser.PDLParserError, "The Python Imaging Library is missing." 
    3034 
    3135def getPercent(img, nbpix) :