0

Follow symbolic links while finding region sets.

This commit is contained in:
Christoph Burschka
2013-03-10 20:24:21 +01:00
parent b8e2003c65
commit d32b247db7

View File

@@ -116,7 +116,7 @@ class World(object):
# seem to be any set standard on what dimensions are in each world, # seem to be any set standard on what dimensions are in each world,
# just scan the directory heirarchy to find a directory with .mca # just scan the directory heirarchy to find a directory with .mca
# files. # files.
for root, dirs, files in os.walk(self.worlddir): for root, dirs, files in os.walk(self.worlddir, followlinks=True):
# any .mcr files in this directory? # any .mcr files in this directory?
mcas = [x for x in files if x.endswith(".mca")] mcas = [x for x in files if x.endswith(".mca")]
if mcas: if mcas: