# HG changeset patch
# User Nathan Stocks <nathan.stocks@gmail.com>
# Date 1349326606 21600
# Node ID f8102f9ee5b19c43c6129dac070bf393f82e3ef7
# Parent  bf7f6c05275664ed76aab926944fe3a6a74ff022
Made it so that once you load an image, you can still load more images of the same name by changing pyglet.resource.path.

diff -r bf7f6c052756 -r f8102f9ee5b1 pyglet/resource.py
--- a/pyglet/resource.py	Sat Sep 15 16:48:08 2012 -0500
+++ b/pyglet/resource.py	Wed Oct 03 22:56:46 2012 -0600
@@ -504,9 +504,9 @@
         '''
         self._require_index()
         if name in self._cached_images:
-            identity = self._cached_images[name]
+            identity = self._cached_images[str(self.path)+name]
         else:
-            identity = self._cached_images[name] = self._alloc_image(name,
+            identity = self._cached_images[str(self.path)+name] = self._alloc_image(name,
                 atlas=atlas)
 
         if not rotate and not flip_x and not flip_y:
