On Fri, Mar 15, 2013 at 8:44 PM, Dave Musicant <[email protected]> wrote:
> I've discovered the problem, actually -- pyglet.resource.FileLocation
> seems to take an enormously long time when run from directories with a lot
> of subdirectories/files (such as my home directory). Can anyone clarify
> what's going on there? Should this be considered a bug?
>
>
I don't think that's the problem. Take a look at the code for FileLocation
(it's almost...no code at all)
class Location(object):
def open(self, filename, mode='rb'):
raise NotImplementedError('abstract')
class FileLocation(Location):
def __init__(self, path):
self.path = path
def open(self, filename, mode='rb'):
return open(os.path.join(self.path, filename), mode)
~ Nathan
--
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 http://groups.google.com/group/pyglet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.