Oct. 27, 2009
11:57 a.m.
Hi Naman,
I tried to implement this:
parent_conn, child_conn = Pipe()
f = defer.Deferred() f = threads.deferToThread(start_test.main_func, SCRIPT_PATH, TEMP_OUTPUT_PATH, self.output_name, child_conn)
Do you really want to spawn a thread or a process? Since it seems like you're trying to run a python script, you'd want to spawn a process (since it also looks like you want to use a pipe for communication with that process). Twisted has support for spawning processes - see reactor.spawnProcess and ProcessProtocol: http://twistedmatrix.com/projects/core/documentation/howto/process.html#auto... Cheers, Reza -- Reza Lotun mobile: +44 (0)7521 310 763 email: rlotun@gmail.com work: reza@tweetdeck.com twitter: @rlotun