0

renders now work with the multiprocessing dispatcher

This commit is contained in:
Aaron Griffith
2012-01-06 21:56:26 -05:00
parent b31c4377ab
commit 1baf506a59
3 changed files with 29 additions and 10 deletions

View File

@@ -420,11 +420,12 @@ dir but you forgot to put quotes around the directory, since it contains spaces.
tilesets.append(tset)
# non-multiprocessing dispatcher
dispatch = dispatcher.Dispatcher()
# multiprocessing dispatcher
dispatch = dispatcher.MultiprocessingDispatcher()
def print_status(*args):
logging.info("Status callback: %r", args)
dispatch.render_all(tilesets, print_status)
dispatch.close()
sys.exit("early abort")