import gooey gooey_root = os.path.dirname(gooey.__file__) gooey_languages = Tree(os.path.join(gooey_root, 'languages'), prefix = 'gooey/languages') gooey_images = Tree(os.path.join(gooey_root, 'images'), prefix = 'gooey/images') a = Analysis(['REPLACE_ME.py'], pathex=['c:\\Python27\\Scripts'], hiddenimports=[], hookspath=None, runtime_hooks=None, ) pyz = PYZ(a.pure) options = [('u', None, 'OPTION'), ('u', None, 'OPTION'), ('u', None, 'OPTION')] exe = EXE(pyz, a.scripts, a.binaries, a.zipfiles, a.datas, options, gooey_languages, # Add them in to collected files gooey_images, # Same here. name='REPLACE_ME', debug=False, strip=None, upx=True, console=False, windowed=True, icon=os.path.join(gooey_root, 'images', 'program_icon.ico'))