aboutsummaryrefslogtreecommitdiffstats
path: root/meson/test cases/common/123 custom target directory install/docgen.py
blob: 97a3f906ca826c9d58117b2af3ca7c3adc8b4616 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/usr/bin/env python3

import os
import sys

out = sys.argv[1]

try:
    os.mkdir(out)
except FileExistsError:
    pass

for name in ('a', 'b', 'c'):
    with open(os.path.join(out, name + '.html'), 'w') as f:
        f.write(name)