Debian Codegraph @

test cases/common/123 custom target directory install/docgen.py

raw
1 #!/usr/bin/env python3
2
3 import os
4 import sys
5
6 out = sys.argv[1]
7
8 try:
9 os.mkdir(out)
10 except FileExistsError:
11 pass
12
13 for name in ('a', 'b', 'c'):
14 with open(os.path.join(out, name + '.html'), 'w') as f:
15 f.write(name)