Debian Codegraph @

doc/samples/delayed_creates.py

raw symbols SCIP
1 import sys
2
3 from doit import create_after
4
5 def say_hello(your_name):
6 sys.stderr.write("Hello from {}!\n".format(your_name))
7
8 def task_a():
9 return {
10 "actions": [ (say_hello, ["a"]) ]
11 }
12
13 @create_after("a", creates=['b'])
14 def task_another_task():
15 return {
16 "basename": "b",
17 "actions": [ (say_hello, ["b"]) ],
18 }