mirror of
https://gitea.tendokyu.moe/beerpsi/artemis-portable.git
synced 2026-10-04 20:58:02 +03:00
11 lines
278 B
Python
11 lines
278 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) |