I have a jpg image which is displayed in my wxPython app. It is loaded from an 'image' directory. eg. image/mypic.jpg
This works fine when I type "python mywxapp" from the command line, but when I build an app bundle it doesn't work. I've tried two options (see below). Both copy the jpg to the Resourses directory, but I loose the images/ directory. What's the best/appropriate way to get image files in the app ?? It has to work with manual invocation too. Put image files in the same directory as the source ??? Thanks, Brendan. DATA_FILES = [ 'images/mypic.jpg' ] OPTIONS = { 'argv_emulation' : True, } setup( app = APP, data_files = DATA_FILES, options = { 'py2app' : OPTIONS }, setup_requires=['py2app'], ) and: DATA_FILES = [] OPTIONS = { 'argv_emulation' : True, 'resources' : 'images/mypic.jpg', } setup( app = APP, data_files = DATA_FILES, options = { 'py2app' : OPTIONS }, setup_requires=['py2app'], )
begin:vcard fn:Brendan Simon n:Simon;Brendan org:eTRIX pty ltd adr:;;PO Box 306;St Kilda;VIC;3182;Australia email;internet:brendan.si...@etrix.com.au title:Managing Director tel;work:+61-417-380-984 tel;cell:+61-417-380-984 x-mozilla-html:TRUE version:2.1 end:vcard
_______________________________________________ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig