From 29dc98ce2ab857664dfd80b4474b53a8d4251162 Mon Sep 17 00:00:00 2001 From: Andrew Chin Date: Sat, 19 Mar 2011 23:49:56 -0400 Subject: [PATCH] Fix a -p 1 regression --- quadtree.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/quadtree.py b/quadtree.py index 73d982b..25855fc 100644 --- a/quadtree.py +++ b/quadtree.py @@ -375,6 +375,8 @@ class QuadtreeGen(object): # Create a pool if procs == 1: pool = FakePool() + global child_quadtree + child_quadtree = self else: pool = multiprocessing.Pool(processes=procs,initializer=pool_initializer,initargs=(self,)) #warm up the pool so it reports all the worker id's