wabbajack/scripts/version_extract.py
2022-05-23 13:54:46 -06:00

7 lines
197 B
Python

import os
for line in open("CHANGELOG.md").readlines():
if (line.startswith("#### Version")):
print(line.split(" ")[3])
os.environ["VERSION"] = line.split(" ")[3]
break