moved directory creation to quadtree initialization
This commit is contained in:
@@ -71,6 +71,10 @@ class QuadtreeGen(object):
|
||||
self.imgformat = imgformat
|
||||
self.optimizeimg = optimizeimg
|
||||
|
||||
# Make the destination dir
|
||||
if not os.path.exists(destdir):
|
||||
os.mkdir(destdir)
|
||||
|
||||
if depth is None:
|
||||
# Determine quadtree depth (midpoint is always 0,0)
|
||||
for p in xrange(15):
|
||||
@@ -270,10 +274,6 @@ class QuadtreeGen(object):
|
||||
def go(self, procs):
|
||||
"""Renders all tiles"""
|
||||
|
||||
# Make the destination dir
|
||||
if not os.path.exists(self.destdir):
|
||||
os.mkdir(self.destdir)
|
||||
|
||||
curdepth = self._get_cur_depth()
|
||||
if curdepth != -1:
|
||||
if self.p > curdepth:
|
||||
|
||||
Reference in New Issue
Block a user