Changeset 1397 for trunk/GSASIIIO.py


Ignore:
Timestamp:
Jun 26, 2014 1:23:03 PM (8 years ago)
Author:
toby
Message:

Allow use of Image from pillow in place of PIL

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIIO.py

    r1386 r1397  
    526526    '''
    527527    import struct as st
    528     import Image as Im
     528    try:
     529        import Image as Im
     530    except ImportError:
     531        try:
     532            from PIL import Image as Im
     533        except ImportError:
     534            print "PIL/pillow Image module not present. TIFs cannot be read without this"
     535            raise Exception("PIL/pillow Image module not found")
    529536    import array as ar
    530537    import ReadMarCCDFrame as rmf
Note: See TracChangeset for help on using the changeset viewer.