On Sat, Aug 1, 2009 at 5:30 PM, Morgan <[email protected]> wrote:

>
> imagename = os.path.normpath("test/test.png")
> image = pyglet.resource.image( imagename )
>
> Should this work? Because it used to... but I just updated both pyglet
> and python on this system, and now it doesn't. Python 2.6.2, pyglet
> 1.1.3., Windows XP Pro.


pyglet *resource* names uses the unix separator ´/´ on any OS ( look
pyglet.resource )
if you intented not to use .resource, then you want
 image = pyglet.image.load(imagename)
and there yes, the separators are the OS dependant.
--
claxo

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pyglet-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/pyglet-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to