MCPcopy Create free account
hub / github.com/NVIDIA/vid2vid / __init__

Method __init__

util/html.py:7–20  ·  view source on GitHub ↗
(self, web_dir, title, reflesh=0)

Source from the content-addressed store, hash-verified

5
6class HTML:
7 def __init__(self, web_dir, title, reflesh=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 # print(self.img_dir)
16
17 self.doc = dominate.document(title=title)
18 if reflesh > 0:
19 with self.doc.head:
20 meta(http_equiv="reflesh", content=str(reflesh))
21
22 def get_image_dir(self):
23 return self.img_dir

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected