-
Notifications
You must be signed in to change notification settings - Fork 55
/
main.py
17 lines (17 loc) · 1.29 KB
/
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
def define_env(env):
env.variables.icon = dict(
fun='<img src="../img/awesomeface.png" height="30px" width="auto" style="margin: 0; border: none"/>',
tip='<img src="../img/bulb.png" height="30px" width="auto" style="margin: 0; border: none"/>',
story='<img src="../img/book.png" height="30px" width="auto" style="margin: 0; border: none"/>',
warn='<img src="../img/warning.png" height="30px" width="auto" style="margin: 0; border: none"/>',
detail='<img src="../img/question.png" height="30px" width="auto" style="margin: 0; border: none"/>',
)
env.variables.icon2 = dict(
fun='<img src="./img/awesomeface.png" height="30px" width="auto" style="margin: 0; border: none"/>',
tip='<img src="./img/bulb.png" height="30px" width="auto" style="margin: 0; border: none"/>',
story='<img src="./img/book.png" height="30px" width="auto" style="margin: 0; border: none"/>',
warn='<img src="./img/warning.png" height="30px" width="auto" style="margin: 0; border: none"/>',
detail='<img src="./img/question.png" height="30px" width="auto" style="margin: 0; border: none"/>',
)
import datetime
env.variables.build_date = datetime.datetime.now(datetime.timezone(datetime.timedelta(hours=8))).strftime('%Y年%m月%d日 %H:%M:%S (%Z)')