防止copy config复制修改后的config

This commit is contained in:
Womsxd 2022-10-12 22:09:11 +08:00
parent 2c5599e79b
commit 509f7a04be
No known key found for this signature in database
GPG Key ID: 0FE76418EE689B68

View File

@ -42,6 +42,8 @@ config = {
}
}
}
config_raw = {}
config_raw.update(config)
path = os.path.dirname(os.path.realpath(__file__)) + "/config"
if os.getenv("AutoMihoyoBBS_config_path") is not None:
@ -51,7 +53,7 @@ config_Path = f"{path}/config.yaml"
def copy_config():
return config
return config_raw
def load_config_json():