You probably want to use thread.join() in your main thread, after creating the job thread. Something like:
job_thread = PopenCall(onExit, PopenArgs)
job_thread.join() # this will block until the thread exits
You probably want to use thread.join() in your main thread, after creating the job thread. Something like:
job_thread = PopenCall(onExit, PopenArgs)
job_thread.join() # this will block until the thread exits