0

Use the proper directory to walk

This commit is contained in:
Ryan McCue
2010-12-11 21:18:02 +10:00
parent e7c19f9309
commit 2eb85ae946

View File

@@ -112,7 +112,7 @@ class WorldRenderer(object):
# In order to avoid having to look up the cache file names in # In order to avoid having to look up the cache file names in
# ChunkRenderer, get them all and store them here # ChunkRenderer, get them all and store them here
for root, dirnames, filenames in os.walk('.'): for root, dirnames, filenames in os.walk(cachedir):
for filename in filenames: for filename in filenames:
if not filename.endswith('.png'): if not filename.endswith('.png'):
continue continue