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()
?
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.