0

fixed bug when overviewer.dat exists in world dir, but output dir does not exist

This commit is contained in:
Aaron Griffith
2011-08-16 15:07:21 -04:00
parent 79680203a5
commit 3e2828a3d9

View File

@@ -119,6 +119,11 @@ class World(object):
logging.warning("Moving overviewer.dat to OutputDir")
import shutil
try:
# make sure destination dir actually exists
try:
os.mkdir(self.outputdir)
except OSError: # already exists, or failed
pass
shutil.move(self.pickleFile, self.outputdir)
logging.info("overviewer.dat moved")
except BaseException as ex: