Image save script does not work with py2exe.
 
The script works with python exe but not after py2exe,
Please help !! It looks like its a PIL Error. Any clues how to resolve ?
 
#!/usr/bin/env python
 
import os, os.path, string, sys, shutil
from Tkinter import *
import Image
 
infile = 'c:\\testing\\Input\\562.tif'
outfile = 'c:\\testing\\Intermediate\\562.bmp'
 
def save():
    global infile,outfile
    print "Infile is " + infile
    print "Outfile is " + outfile
    if infile != outfile:
        try:
            Image.open(infile).save(outfile)
        except IOError:
            print "Error Cannot convert", infile
           
  
# Divide GUI into 3 frames: top, mid, bot
root = Tk()
topframe = Frame(root,
                 borderwidth=2,
                 relief=GROOVE)
topframe.pack(padx=80, pady=10)
 
Button(topframe, text='Convert', command=save).pack(side=LEFT,
                                                       padx=5,
                                                       pady=5)
 
root.title('Image Converter')
root.mainloop()
 
 

**********************************************************************

Confidentiality Notice

The information contained in this e-mail is confidential and intended for

use only by the person(s) or organization listed in the address. If you have

received this communication in error, please contact the sender at O'Neil &

Associates, Inc., immediately. Any copying, dissemination, or distribution

of this communication, other than by the intended recipient, is strictly

prohibited.

**********************************************************************