def _init_taskqueue_stub(self, **stub_kwargs):
task_args = {}<EOL>if '<STR_LIT>' not in stub_kwargs:<EOL><INDENT>for p in self._app_path:<EOL><INDENT>dir_ = os.path.dirname(p) if os.path.isfile(p) else p<EOL>if os.path.isfile(os.path.join(dir_, '<STR_LIT>')) oros.path.isfile(os.path.join(dir_, '<STR_LIT>')):<EOL><INDENT>task_args['<STR_LIT>'] = dir_<EOL>break<EOL><DEDENT><DEDENT><DEDENT>task_args.update(stub_kwargs)<EOL>self.testbed.init_taskqueue_stub(**task_args)<EOL>
Initializes the taskqueue stub using nosegae config magic