blob: 9c0f03d3c14d2fa968538197e903f1ef5d685f85 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
fnode = File(u'foo.txt')
def funcact(target, source, env):
open(str(target[0]), 'wb').write(b"funcact\n")
for i in range(300):
pass
return 0
env = Environment()
env.Command(fnode, [], ["echo $TARGET", funcact])
|