>From the error it seems like its already looking there, the _MEIYB5FHD 
folder is the temporary folder, although did you pack the images along with 
the /img/ folder into the exe? If you just packed the images and not the 
folder then just knock off the /img/ in your load string:

pic1 = pyglet.image.load(resource_path('ad.jpg'))


I tend to wrap assets in a zip file (sans folders) when embedding in an 
exe, then do this:

myzipfile = zipfile.ZipFile(resource_path('data.zip'),'r')
for fileName in myzipfile.namelist():
    if fileName == 'picture.PNG':
        myzipfile.extract(fileName,resource_path(''))
        self.image = pyglet.image.load(resource_path(fileName))
        os.remove(resource_path(fileName))


-- 
You received this message because you are subscribed to the Google Groups 
"pyglet-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/pyglet-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to