posspack/.forgejo/scripts/update-wiki.py

13 lines
238 B
Python
Raw Normal View History

2024-07-27 14:23:23 +02:00
#!/usr/bin/env python
2024-07-27 14:41:57 +02:00
from pip._vendor import tomli
2024-07-27 14:28:16 +02:00
import glob
import os
2024-07-27 14:31:45 +02:00
#print(os.environ["GITHUB_TOKEN"])
for mod in glob.glob("pack/mods/*.toml"):
2024-07-27 14:40:49 +02:00
with open(mod, "rb") as f:
2024-07-27 14:41:57 +02:00
data = tomli.load(f)
2024-07-27 14:40:49 +02:00
print(mod)
print(data)