10 lines
413 B
Python
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")
|