how to package images into exe

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

how to package images into exe

Sebastian Hilbert

Hi,

 

I receive the following error from GNUmed when packaging.

 

Here is my spec file

 

# -*- mode: python -*-

a = Analysis([os.path.join(HOMEPATH,'support\\_mountzlib.py'), os.path.join(CONFIGDIR,'support\\useUnicode.py'), 'D:/workplace/gnumed-client.1.3.0/client/gnumed.py'],

pathex=['D:\\workplace\\pyinstaller-trunk'])

pyz = PYZ(a.pure)

exe = EXE(pyz,

a.scripts,

exclude_binaries=1,

name=os.path.join('build\\pyi.win32\\gnumed', 'gnumed.exe'),

debug=False,

strip=None,

upx=True,

console=False,

icon=r'D:\\workplace\\misc\\gnumed.ico')

coll = COLLECT( exe,

a.binaries + [('icons/unstickypin.png', 'D:/workplace/timeline/icons/unstickypin.png', 'DATA')],

a.zipfiles,

a.datas,

strip=None,

upx=True,

name=os.path.join('frozen', 'bin'))

app = BUNDLE(coll,

name=os.path.join('dist', 'gnumed.app'))

 

 

What would be the correct way to package the image into the exe ?

 

Regards,

Sebastian

 

 

--
You received this message because you are subscribed to the Google Groups "PyInstaller" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at http://groups.google.com/group/pyinstaller?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

errormsg.png (164K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: how to package images into exe

Hartmut Goebel
Am 17.03.2013 11:59, schrieb Sebastian Hilbert:

What would be the correct way to package the image into the exe ?


http://www.pyinstaller.org/wiki/Recipe/CollectDatafiles



--
Schönen Gruß
Hartmut Goebel
Dipl.-Informatiker (univ), CISSP, CSSLP

Goebel Consult
http://www.goebel-consult.de

Monatliche Kolumne: http://www.cissp-gefluester.de/2011-11-in-troja-nichts-neues Blog: http://www.goebel-consult.de/blog/20041011

Goebel Consult ist Mitglied bei http://www.7-it.de/


smime.p7s (5K) Download Attachment