parameters: (tg, additional_subpath=None, tg_name_override=None)
return_statement: return getattr(tg, 'az_code_gen_override_target', azcg_output_dir_node(tg.bld, tg_name, additional_subpath))
docstring: Gets the output dir from a task generator.
docstring_summary: Gets the output dir from a task generator.
docstring_tokens: Gets the output dir from a task generator .
function: def get_azcg_output_dir_node(tg, additional_subpath=None, tg_name_override=None):
      """
      Gets the output dir from a task generator.
      """
      tg_name = tg_name_override if tg_name_override else tg.name
      # Apply any override for the az_code_gen target, otherwise fall back to the default behavior
      return getattr(tg, 'az_code_gen_override_target', azcg_output_dir_node(tg.bld, tg_name, additional_subpath))
function_tokens: def get_azcg_output_dir_node ( tg , additional_subpath = None , tg_name_override = None ) : tg_name = tg_name_override if tg_name_override else tg . name # Apply any override for the az_code_gen target, otherwise fall back to the default behavior return getattr ( tg , 'az_code_gen_override_target' , azcg_output_dir_node ( tg . bld , tg_name , additional_subpath ) )