Files
blog/tmp_botcfg.py
T
2026-06-01 17:57:22 +08:00

10 lines
413 B
Python

base = r"E:\GitHub\blog"
with open(base + "\\bot-go\\internal\\config\\config.go", "rb") as f:
content = f.read()
text = content.decode("utf-8")
text = text.replace("package config", "package botconfig")
text = text.replace("writebot/internal/", "write-server/internal/")
with open(base + "\\write-go\\internal\\botconfig\\config.go", "wb") as f:
f.write(text.encode("utf-8"))
print("botconfig fixed")