mirror of
https://gitea.tendokyu.moe/beerpsi/artemis-portable.git
synced 2026-09-29 10:18:18 +03:00
12 lines
279 B
Python
12 lines
279 B
Python
import configparser
|
|
import sys
|
|
|
|
config = configparser.ConfigParser()
|
|
config.read(sys.argv[1])
|
|
config["mysqld"]["datadir"] = "data"
|
|
config["mysqld"]["bind-address"] = "127.0.0.1"
|
|
config["client"]["plugin-dir"] = "lib/plugin"
|
|
|
|
with open(sys.argv[1], "w") as f:
|
|
config.write(f)
|