put this file together with current pyglet code (i used trunk) in a
folder and execute it:

import pyglet

print pyglet.resource._default_loader._index.keys()

try:
    pyglet.resource.file("pyglet\window\carbon\__init__.py")
except pyglet.resource.ResourceNotFoundException:
    print "backslashes do not work"
else:
    print "backslashes do work"

try:
    pyglet.resource.file("pyglet/window/carbon/__init__.py")
except pyglet.resource.ResourceNotFoundException:
    print "slashes do not work"
else:
    print "slashes do work"

try:
    pyglet.resource.file("pyglet\\window/carbon/__init__.py")
except pyglet.resource.ResourceNotFoundException:
    print "slashes and backslashes do not work"
else:
    print "slashes and backslashes do work"

it first prints all found paths as a list (which look already messes
up with slashes and backslashes) and then for me:

backslashes do not work
slashes do not work
slashses and backslashes do work

so the only way i can access a resource is throuh a combination of
backslashes and slashes like this:
pyglet\\window/carbon/__init__.py

i will try to fix that on my own in resource.py and will come back if
i found the solution but as i think that alex will be faster i'm
posting this issue here anyways
--~--~---------~--~----~------------~-------~--~----~
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