nowadays i try to something on PyQt4 and Py2exe.Last day write some code(python 2.7) and export with py2exe for windows but it faild so my project have two file main.py and desing.xml and how to add in my setup i don't have any idea
from distutils.core import setup import py2exe, sys, os import xml.etree.ElementTree sys.argv.append('py2exe') inc=["sip","PyQt4","PyQt4.QtGui","PyQt4.QtCore",'xml.etree.ElementPath', 'xml.etree.ElementTree', 'xml.etree.cElementTree'] setup( windows = [{'script': "main.py"}],
options = {'' 'py2exe': { 'bundle_files': 1, 'compressed': True, 'dll_excludes': ["MSVCP90.dll", "HID.DLL"], 'includes':inc, 'packages':["Desing.xml"] }} )
No comments:
Post a Comment