0

Given that my Ada builder use a function ada_action which is registered by

static_obj.action(suffix, Action(ada_action, print_action_string)

which currently calls env.Execute() and further

def print_action_string(target, source, env):
    print env.subst(env["ADACOMSTR"], target=target, source=source)

How can I control the verbosity levels so that if env["ADACOMSTR"] is defined it should only call print_action_string and inhibit echoing of the shell command currently done by env.Execute()?

Nordlöw
  • 11,838
  • 10
  • 52
  • 99

1 Answers1

1

You normally don't need to use Execute() in a builder action. Perhaps if you share that bit of code it might help. You could also look into using a generator, depending on what exactly you're looking for.

GaryO
  • 5,873
  • 1
  • 36
  • 61