11 lines
276 B
Python
11 lines
276 B
Python
from datetime import datetime
|
|
|
|
|
|
def gen_build_time():
|
|
with open('build_info.py', 'w', encoding='utf-8') as f:
|
|
f.write(f"# Auto-generated build info\n")
|
|
f.write(f"BUILD_TIME = '{datetime.now().isoformat(sep=' ', timespec='seconds')}'\n")
|
|
|
|
|
|
gen_build_time()
|