(self, web_dir, title, refresh=0)
| 5 | |
| 6 | class HTML: |
| 7 | def __init__(self, web_dir, title, refresh=0): |
| 8 | self.title = title |
| 9 | self.web_dir = web_dir |
| 10 | self.img_dir = os.path.join(self.web_dir, 'images') |
| 11 | if not os.path.exists(self.web_dir): |
| 12 | os.makedirs(self.web_dir) |
| 13 | if not os.path.exists(self.img_dir): |
| 14 | os.makedirs(self.img_dir) |
| 15 | |
| 16 | self.doc = dominate.document(title=title) |
| 17 | if refresh > 0: |
| 18 | with self.doc.head: |
| 19 | meta(http_equiv="refresh", content=str(refresh)) |
| 20 | |
| 21 | def get_image_dir(self): |
| 22 | return self.img_dir |
nothing calls this directly
no outgoing calls
no test coverage detected