From 3e2828a3d924742c2ae2be41315082d8064b7b67 Mon Sep 17 00:00:00 2001 From: Aaron Griffith Date: Tue, 16 Aug 2011 15:07:21 -0400 Subject: [PATCH] fixed bug when overviewer.dat exists in world dir, but output dir does not exist --- overviewer_core/world.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/overviewer_core/world.py b/overviewer_core/world.py index a18b86a..ad98328 100644 --- a/overviewer_core/world.py +++ b/overviewer_core/world.py @@ -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: