Commits

Anonymous committed f52ca45

fix no-PIL error message

Comments (0)

Files changed (1)

 
 """
 import sys
+from os.path import basename
 from optparse import OptionParser
 
 usage = "usage: %prog [options] line-height column-width gutter-width"
         from PIL import Image, ImageDraw
         from PIL.ImageColor import getrgb
     except ImportError:
-        print "Error: %s requires Python Imaging Library."
+        print "Error: %s requires Python Imaging Library." % basename(sys.argv[0])
         print
         sys.exit(1)