ich - Python- und Pyqt-Newbie habe folgendes Problem.
Ich habe eine Anwendung mit Python 2.6 und PyQT geschrieben. Die Anwendung benutzt eine QT-Ressourcendatei um Grafiken einzubinden (Icons, etc.). Die Anwendung funktioniert einwandfrei.
Sobald ich diese aber mit py2exe als "Distribution" erstellen will, fehlen plötzlich sämtliche Bilder, Icons, etc.
Anbei die Datei setup.py
Code: Alles auswählen
# Bufix fuer Unterstuetzung von winshell
# By default, the installer will be created as distOutputsetup.exe.
import time
import sys
# ModuleFinder can't handle runtime changes to __path__, but win32com uses them
try:
# if this doesn't work, try import modulefinder
import py2exe.mf as modulefinder
import win32com
for p in win32com.__path__[1:]:
modulefinder.AddPackagePath("win32com", p)
for extra in ["win32com.shell"]: #,"win32com.mapi"
__import__(extra)
m = sys.modules[extra]
for p in m.__path__[1:]:
modulefinder.AddPackagePath(extra, p)
except ImportError:
# no build path setup, no worries.
pass
# Ende Bufix
from distutils.core import setup
import py2exe
#+#setup(console=['ieConnect.pyw'])
setup(windows=[{"script" : "ieConnect.pyw"}], options={"py2exe" : {'optimize': 2, }})
Ich hoffe jemand von Euch kann mir helfen.
Vielen Dank im Voraus.
Bastian