Use the proper directory to walk
This commit is contained in:
2
world.py
2
world.py
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user