wabbajack/scripts/version_extract.py

7 lines
197 B
Python
Raw Permalink Normal View History

2022-05-23 19:54:46 +00:00
import os
2022-05-23 16:17:31 +00:00
for line in open("CHANGELOG.md").readlines():
if (line.startswith("#### Version")):
print(line.split(" ")[3])
2022-05-23 19:54:46 +00:00
os.environ["VERSION"] = line.split(" ")[3]
2022-05-23 16:17:31 +00:00
break