用py2exe把wxpython窗体和对应的flash文件打包为一个exe文件,其中要保证exe能够找到flash播放器的activex控件。经过尝试最后解决了问题,解决方案如下:
from distutils.core import setup
import py2exe
setup(windows=["testFlash.py"],
data_files=["testFlash.swf"],
options = {"py2exe": {"typelibs": [('{
D27CDB6B-AE6D-11CF-96B8-444553540000}', 0x0, 1, 0)]}}
)