summaryrefslogtreecommitdiff
path: root/DOC/bin/build_site.py
blob: c153150acfbaf2c68b559ea50ab3311847353172 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/usr/bin/env python3

import os
import sqlite3

db=sqlite3.connect("dbase/pigpio.sqlite")

c=db.cursor()

c.execute("select file_name from pigpio")

names = c.fetchall()

for n in names:
   os.system("bin/html.py {0} >HTML/{0}.html".format(n[0]))
   print(n[0])

c.close()

db.close()