Ignore:
Timestamp:
Apr 8, 2011 3:58:01 PM (11 years ago)
Author:
vmaksymiv
Message:

fixed PIL imports

File:
1 edited

Legend:

Unmodified
Added
Removed
  • quintagroup.captcha.core/trunk/quintagroup/captcha/core/utils.py

    r2180 r3097  
    2727def gen_captcha(**kwargs): 
    2828    """Generate a captcha image""" 
    29     import ImageFile 
    30     import Image 
    31     import ImageFont 
    32     import ImageDraw 
    33     import ImageFilter 
     29    try: 
     30        from App import ImageFile 
     31    except ImportError: 
     32        import ImageFile 
     33    from PIL import Image 
     34    from PIL import ImageFont 
     35    from PIL import ImageDraw 
     36    from PIL import ImageFilter 
    3437    import random 
    3538    from PIL import ImageFile as pyImageFile 
Note: See TracChangeset for help on using the changeset viewer.